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:
Robert Kovacsics 2021-08-22 15:46:48 +01:00
parent 556a8fd85b
commit aae58e15fe

View File

@ -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";