Skip to content

Commit

Permalink
libtiff: apply security patches from Debian
Browse files Browse the repository at this point in the history
/cc #21967.
  • Loading branch information
vcunat committed Jan 18, 2017
1 parent 8e5e365 commit 68c9530
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/libraries/libtiff/default.nix
Expand Up @@ -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 ];
Expand Down

2 comments on commit 68c9530

@grahamc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incredible set of new patches for us!

@vcunat
Copy link
Member Author

@vcunat vcunat commented on 68c9530 Jan 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I wondered if we had something unfixed for some time.

Please sign in to comment.