From 6c00d9f7e47980ae78c113ddabe10bce040dd87e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 16 Dec 2014 16:41:35 +0100 Subject: [PATCH] cups-filters: Fix finding GS in several filters --- pkgs/misc/cups/filters.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/misc/cups/filters.nix b/pkgs/misc/cups/filters.nix index 6ec1840fb6c6..a6638a780e72 100644 --- a/pkgs/misc/cups/filters.nix +++ b/pkgs/misc/cups/filters.nix @@ -31,6 +31,13 @@ stdenv.mkDerivation rec { substituteInPlace config.h --replace ${cups}/share/cups/data $out/share/cups/data ''; + postInstall = + '' + for i in $out/lib/cups/filter/{pstopdf,texttops,imagetops}; do + substituteInPlace $i --replace 'which ' 'type -p ' + done + ''; + meta = { homepage = http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters; description = "Backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc";