cca45cc3e1
CVE-2017-9935 CVE-2017-11613 CVE-2017-17095 CVE-2017-18013 CVE-2018-5784 CVE-2018-7456 Re #41748 (master) Re #41749 (release-18.03 - needs to be cherry-picked)
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchurl, fetchpatch, pkgconfig, zlib, libjpeg, xz }:
|
|
|
|
let
|
|
version = "4.0.9";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "libtiff-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
|
|
sha256 = "1kfg4q01r4mqn7dj63ifhi6pmqzbf4xax6ni6kkk81ri5kndwyvf";
|
|
};
|
|
|
|
prePatch = let
|
|
debian = fetchurl {
|
|
url = http://http.debian.net/debian/pool/main/t/tiff/tiff_4.0.9-5.debian.tar.xz;
|
|
sha256 = "15lwcsd46gini27akms2ngyxnwi1hs2yskrv5x2wazs5fw5ii62w";
|
|
};
|
|
in ''
|
|
tar xf ${debian}
|
|
patches="$patches $(sed 's|^|debian/patches/|' < debian/patches/series)"
|
|
'';
|
|
|
|
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true; # not cross;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library and utilities for working with the TIFF image file format";
|
|
homepage = http://download.osgeo.org/libtiff;
|
|
license = licenses.libtiff;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|