squish cups patches all into one statement

This commit is contained in:
Brandon Dimcheff 2014-12-23 11:53:58 -05:00
parent 6a2195c3a5
commit 139d7f6e1a
2 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, cups, poppler, fontconfig
, libjpeg, libpng, perl, ijs, qpdf, dbus, bash }:
, libjpeg, libpng, perl, ijs, qpdf, dbus, substituteAll, bash }:
stdenv.mkDerivation rec {
name = "cups-filters-${version}";
@ -34,12 +34,12 @@ stdenv.mkDerivation rec {
substituteInPlace filter/gstoraster.c --replace execve execvpe
'';
patches = [ ./longer-shell-path.patch ];
postPatch =
''
substituteInPlace filter/foomatic-rip/foomaticrip.c --replace "/bin/bash" "${bash}/bin/bash"
'';
patches = [
(substituteAll {
src = ./longer-shell-path.patch;
bash = "${bash}/bin/bash";
})
];
postInstall =
''

View File

@ -7,7 +7,7 @@ index 1c019aa..431d2f9 100644
"/usr/lib/cups/filter";
-char modern_shell[64] = "/bin/bash";
+char modern_shell[128] = "/bin/bash";
+char modern_shell[128] = "@bash@";
void config_set_option(const char *key, const char *value)
{