Merge pull request #135309 from KoviRobi/nip2-set-VIPSHOME

nip2: Fix location of builtins by setting VIPSHOME
This commit is contained in:
Sandro 2021-08-22 18:48:45 +02:00 committed by GitHub
commit a5b5e8794e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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