@@ -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 =