git.iko.soy/typeable/nixpkgs
on master help sign in
cups-filters: Fix gstoraster

It was trying to find "gs" via execve, so use execvpe instead. It's probably better to use gs's absolute path, but maybe not every cups-filters user needs it.

commitfb079432b0a7e49ed2d0d3e82decc6d57192174d authorEelco Dolstra <eelco.dolstra@logicblox.com> dateTue 16 Dec 2014, 18:15 (12 years ago) parent6c00d9f
1 file changed+6−3
pkgs/misc/cups/filters.nix+6−3
pkgs/misc/cups/filters.nix+6−3
@@ -23,12 +23,15 @@ stdenv.mkDerivation rec {
2323
2424 makeFlags = "CUPS_SERVERBIN=$(out)/lib/cups CUPS_DATADIR=$(out)/share/cups CUPS_SERVERROOT=$(out)/etc/cups";
2525
26− # Ensure that bannertopdf can find the PDF templates in $out. (By
27− # default, it assumes that cups and cups-filters are installed in
28− # the same prefix.)
2926 postConfigure =
3027 ''
28+ # Ensure that bannertopdf can find the PDF templates in
29+ # $out. (By default, it assumes that cups and cups-filters are
30+ # installed in the same prefix.)
3131 substituteInPlace config.h --replace ${cups}/share/cups/data $out/share/cups/data
32+
33+ # Ensure that gstoraster can find gs in $PATH.
34+ substituteInPlace filter/gstoraster.c --replace execve execvpe
3235 '';
3336
3437 postInstall =