mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
squish cups patches all into one statement
This commit is contained in:
parent
6a2195c3a5
commit
139d7f6e1a
@ -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 =
|
||||
''
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user