mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-20 04:33:19 +02:00
e24f5eab66
This allows tools like broken.sh to correctly identify the patched status.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchpatch, fetchurl, pkgconfig, perl, cups, dbus, enscript }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "foomatic-filters-4.0.17";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.openprinting.org/download/foomatic/${name}.tar.gz";
|
|
sha256 = "1qrkgbm5jay2r7sh9qbyf0aiyrsl1mdc844hxf7fhw95a0zfbqm2";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ perl cups dbus enscript ];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "CVE-2015-8327+CVE-2015-8560.patch";
|
|
url = "https://salsa.debian.org/debian/foomatic-filters/raw/a3abbef2d2f8c7e62d2fe64f64afe294563fdf8f/debian/patches/0500-r7406_also_consider_the_back_tick_as_an_illegal_shell_escape_character.patch";
|
|
sha256 = "055nwi3sjf578nk40bqsch3wx8m2h65hdih0wmxflb6l0hwkq4p4";
|
|
})
|
|
];
|
|
|
|
preConfigure =
|
|
''
|
|
substituteInPlace foomaticrip.c --replace /bin/bash ${stdenv.shell}
|
|
'';
|
|
|
|
installTargets = [ "install-cups" ];
|
|
|
|
installFlags = [
|
|
"CUPS_FILTERS=$(out)/lib/cups/filter"
|
|
"CUPS_BACKENDS=$(out)/lib/cups/backend"
|
|
];
|
|
|
|
meta = {
|
|
description = "Foomatic printing filters";
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
};
|
|
}
|