nip2: Fix location of builtins by setting VIPSHOME
The program `nip2` didn't really work without this, as it didn't know where to find the bundled scripts. Though VIPSHOME should really be called NIP2HOME. I suppose I should open an issue upstream to also consider `datarootdir` from autotools?
This commit is contained in:
parent
556a8fd85b
commit
aae58e15fe
@ -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";
|
||||
@ -11,9 +25,24 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
[ pkg-config glib libxml2 flex bison vips
|
||||
gtk2 fftw gsl goffice libgsf
|
||||
];
|
||||
[
|
||||
pkg-config
|
||||
glib
|
||||
libxml2
|
||||
flex
|
||||
bison
|
||||
vips
|
||||
gtk2
|
||||
fftw
|
||||
gsl
|
||||
goffice
|
||||
libgsf
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/nip2 --set VIPSHOME "$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/libvips/nip2";
|
||||
|
Loading…
Reference in New Issue
Block a user