Merge pull request #135309 from KoviRobi/nip2-set-VIPSHOME
nip2: Fix location of builtins by setting VIPSHOME
This commit is contained in:
commit
a5b5e8794e
1 changed files with 36 additions and 5 deletions
|
@ -1,5 +1,19 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, glib, libxml2, flex, bison, vips, gtk2
|
||||
, fftw, gsl, goffice, libgsf }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, glib
|
||||
, libxml2
|
||||
, flex
|
||||
, bison
|
||||
, vips
|
||||
, gtk2
|
||||
, fftw
|
||||
, gsl
|
||||
, goffice
|
||||
, libgsf
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nip2";
|
||||
|
@ -10,11 +24,28 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0l7n427njif53npqn02gfjjly8y3khbrkzqxp10j5vp9h97psgiw";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
[ pkg-config glib libxml2 flex bison vips
|
||||
gtk2 fftw gsl goffice libgsf
|
||||
nativeBuildInputs = [
|
||||
bison
|
||||
flex
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
libxml2
|
||||
vips
|
||||
gtk2
|
||||
fftw
|
||||
gsl
|
||||
goffice
|
||||
libgsf
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/nip2 --set VIPSHOME "$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/libvips/nip2";
|
||||
description = "Graphical user interface for VIPS image processing system";
|
||||
|
|
Loading…
Reference in a new issue