libtiff: apply security patches from Debian

/cc #21967.
This commit is contained in:
Vladimír Čunát 2017-01-18 15:50:58 +01:00
parent 8e5e365265
commit 68c9530998
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -11,6 +11,17 @@ stdenv.mkDerivation rec {
sha256 = "06ghqhr4db1ssq0acyyz49gr8k41gzw6pqb6mbn5r7jqp77s4hwz";
};
prePatch =let
# https://lwn.net/Vulnerabilities/711777/
debian = fetchurl {
url = http://http.debian.net/debian/pool/main/t/tiff/tiff_4.0.7-5.debian.tar.xz;
sha256 = "1ribxdn89wx3nllcyh7ql3dx6wpr1h7z3waglz1w7dklxm43q67l";
};
in ''
tar xf '${debian}'
patches="$patches $(cat debian/patches/series | sed 's|^|debian/patches/|')"
'';
outputs = [ "bin" "dev" "out" "doc" ];
nativeBuildInputs = [ pkgconfig ];