From e6fe8a3fd09527c1acfc96bfca7b79ee0882c670 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 16 Dec 2014 18:15:52 +0100 Subject: [PATCH] cups-filters: Fix gstoraster MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 fb079432b0a7e49ed2d0d3e82decc6d57192174d) Signed-off-by: Domen Kožar --- pkgs/misc/cups/filters.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/cups/filters.nix b/pkgs/misc/cups/filters.nix index a6638a780e72..8a0406203aeb 100644 --- a/pkgs/misc/cups/filters.nix +++ b/pkgs/misc/cups/filters.nix @@ -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 =