forked from mirrors/nixpkgs
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.
(cherry picked from commit fb079432b0
)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
2928e8d8f2
commit
e6fe8a3fd0
|
@ -23,12 +23,15 @@ stdenv.mkDerivation rec {
|
|||
|
||||
makeFlags = "CUPS_SERVERBIN=$(out)/lib/cups CUPS_DATADIR=$(out)/share/cups CUPS_SERVERROOT=$(out)/etc/cups";
|
||||
|
||||
# Ensure that bannertopdf can find the PDF templates in $out. (By
|
||||
# default, it assumes that cups and cups-filters are installed in
|
||||
# the same prefix.)
|
||||
postConfigure =
|
||||
''
|
||||
# Ensure that bannertopdf can find the PDF templates in
|
||||
# $out. (By default, it assumes that cups and cups-filters are
|
||||
# installed in the same prefix.)
|
||||
substituteInPlace config.h --replace ${cups}/share/cups/data $out/share/cups/data
|
||||
|
||||
# Ensure that gstoraster can find gs in $PATH.
|
||||
substituteInPlace filter/gstoraster.c --replace execve execvpe
|
||||
'';
|
||||
|
||||
postInstall =
|
||||
|
|
Loading…
Reference in a new issue