@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, cups, poppler, fontconfig
2−, libjpeg, libpng, perl, ijs, qpdf, dbus }:
2+, libjpeg, libpng, perl, ijs, qpdf, dbus, substituteAll, bash }:
33
44stdenv.mkDerivation rec {
55 name = "cups-filters-${version}";
@@ -34,6 +34,13 @@ stdenv.mkDerivation rec {
3434 substituteInPlace filter/gstoraster.c --replace execve execvpe
3535 '';
3636
37+ patches = [
38+ (substituteAll {
39+ src = ./longer-shell-path.patch;
40+ bash = "${bash}/bin/bash";
41+ })
42+ ];
43+
3744 postInstall =
3845 ''
3946 for i in $out/lib/cups/filter/{pstopdf,texttops,imagetops}; do