@@ -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, 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 = [ ./longer-shell-path.patch ];
38+
39+ postPatch =
40+ ''
41+ substituteInPlace filter/foomatic-rip/foomaticrip.c --replace "/bin/bash" "${bash}/bin/bash"
42+ '';
43+
3744 postInstall =
3845 ''
3946 for i in $out/lib/cups/filter/{pstopdf,texttops,imagetops}; do