@@ -1,15 +1,14 @@
11{ stdenv, fetchurl, fetchpatch, pkgconfig, zlib, libjpeg, xz }:
22
33let
4− version = "4.0.6";
5− debversion = "3";
4+ version = "4.0.7";
65in
76stdenv.mkDerivation rec {
87 name = "libtiff-${version}";
98
109 src = fetchurl {
1110 url = "http://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
12− sha256 = "136nf1rj9dp5jgv1p7z4dk0xy3wki1w0vfjbk82f645m0w4samsd";
11+ sha256 = "06ghqhr4db1ssq0acyyz49gr8k41gzw6pqb6mbn5r7jqp77s4hwz";
1312 };
1413
1514 outputs = [ "bin" "dev" "out" "doc" ];
@@ -20,54 +19,11 @@ stdenv.mkDerivation rec {
2019
2120 enableParallelBuilding = true;
2221
23− patches = let p = "https://sources.debian.net/data/main/t/tiff/${version}-${debversion}/debian/patches"; in [
24− (fetchurl {
25− url = "${p}/01-CVE-2015-8665_and_CVE-2015-8683.patch";
26− sha256 = "0qiiqpbbsf01b59x01z38cg14pmg1ggcsqm9n1gsld6rr5wm3ryz";
27− })
28− (fetchurl {
29− url = "${p}/02-fix_potential_out-of-bound_writes_in_decode_functions.patch";
30− sha256 = "1ph057w302i2s94rhdw6ksyvpsmg1nlanvc0251x01s23gkdbakv";
31− })
32− (fetchurl {
33− url = "${p}/03-fix_potential_out-of-bound_write_in_NeXTDecode.patch";
34− sha256 = "1nhjg2gdvyzi4wa2g7nwmzm7nssz9dpdfkwms1rp8i1034qdlgc6";
35− })
36− (fetchurl {
37− url = "${p}/04-CVE-2016-5314_CVE-2016-5316_CVE-2016-5320_CVE-2016-5875.patch";
38− sha256 = "0n47yk9wcvc9j72yvm5bhpaqq0yfz8jnq9zxbnzx5id9gdxmrkn3";
39− })
40− (fetchurl {
41− url = "${p}/05-CVE-2016-6223.patch";
42− sha256 = "0r80hil9k6scdjppgyljhm0s2z6c8cm259f0ic0xvxidfaim6g2r";
43− })
44− (fetchurl {
45− url = "${p}/06-CVE-2016-5321.patch";
46− sha256 = "1aacymlqv6cam8i4nbma9v05r3v3xjpagns7q0ii268h0mhzq6qg";
47− })
48− (fetchurl {
49− url = "${p}/07-CVE-2016-5323.patch";
50− sha256 = "1xr5hy2fxa71j3fcc1l998pxyblv207ygzyhibwb1lia5zjgblch";
51− })
52− (fetchurl {
53− url = "${p}/08-CVE-2016-3623_CVE-2016-3624.patch";
54− sha256 = "1xnvwjvgyxi387h1sdiyp4360a3176jmipb7ghm8vwiz7cisdn9z";
55− })
56− (fetchurl {
57− url = "${p}/09-CVE-2016-5652.patch";
58− sha256 = "1yqfq32gzh21ab2jfqkq13gaz0nin0492l06adzsyhr5brvdhnx8";
59− })
60− (fetchurl {
61− url = "${p}/10-CVE-2016-3658.patch";
62− sha256 = "01kb8rfk30fgjf1hy0m088yhjfld1yyh4bk3gkg8jx3dl9bd076d";
63− })
64− ];
65−
6622 doCheck = true;
6723
6824 meta = with stdenv.lib; {
6925 description = "Library and utilities for working with the TIFF image file format";
70− homepage = http://www.remotesensing.org/libtiff/;
26+ homepage = http://download.osgeo.org/libtiff;
7127 license = licenses.libtiff;
7228 platforms = platforms.unix;
7329 };