at 18.03-beta 40 lines 1.2 kB view raw
1{ stdenv, fetchurl, fetchpatch, pkgconfig, zlib, libjpeg, xz }: 2 3let 4 version = "4.0.9"; 5in 6stdenv.mkDerivation rec { 7 name = "libtiff-${version}"; 8 9 src = fetchurl { 10 url = "http://download.osgeo.org/libtiff/tiff-${version}.tar.gz"; 11 sha256 = "1kfg4q01r4mqn7dj63ifhi6pmqzbf4xax6ni6kkk81ri5kndwyvf"; 12 }; 13 14 prePatch = let 15 debian = fetchurl { 16 url = http://snapshot.debian.org/archive/debian-debug/20180128T155203Z//pool/main/t/tiff/tiff_4.0.9-3.debian.tar.xz; 17 sha256 = "0wya42y7kcq093g3h7ca10cm5sns1mgnkjmdd2qdi59v8arga4y4"; 18 }; 19 in '' 20 tar xf '${debian}' 21 patches="$patches $(cat debian/patches/series | sed 's|^|debian/patches/|')" 22 ''; 23 24 outputs = [ "bin" "dev" "out" "man" "doc" ]; 25 26 nativeBuildInputs = [ pkgconfig ]; 27 28 propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection) 29 30 enableParallelBuilding = true; 31 32 doCheck = true; # not cross; 33 34 meta = with stdenv.lib; { 35 description = "Library and utilities for working with the TIFF image file format"; 36 homepage = http://download.osgeo.org/libtiff; 37 license = licenses.libtiff; 38 platforms = platforms.unix; 39 }; 40}