@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, cups, poppler, fontconfig
2−, libjpeg, libpng, perl, ijs, qpdf, dbus, bash }:
2+, libjpeg, libpng, perl, ijs, qpdf, dbus, substituteAll, bash }:
33
44stdenv.mkDerivation rec {
55 name = "cups-filters-${version}";
@@ -34,12 +34,12 @@ 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− '';
37+ patches = [
38+ (substituteAll {
39+ src = ./longer-shell-path.patch;
40+ bash = "${bash}/bin/bash";
41+ })
42+ ];
4343
4444 postInstall =
4545 ''