git.iko.soy/typeable/nixpkgs
on master help sign in
squish cups patches all into one statement
commit139d7f6e1a3aafd79897e0c3997913d412b31308 authorBrandon Dimcheff <bdimchef-git@wieldim.com> dateTue 23 Dec 2014, 11:53 (12 years ago) parent6a2195c
2 files changed+8−8
pkgs/misc/cups/filters.nix+7−7 pkgs/misc/cups/longer-shell-path.patch+1−1
pkgs/misc/cups/filters.nix+7−7
@@ -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 ''
pkgs/misc/cups/longer-shell-path.patch+1−1
@@ -7,7 +7,7 @@ index 1c019aa..431d2f9 100644
77 "/usr/lib/cups/filter";
88
99-char modern_shell[64] = "/bin/bash";
10−+char modern_shell[128] = "/bin/bash";
10++char modern_shell[128] = "@bash@";
1111
1212 void config_set_option(const char *key, const char *value)
1313 {