Skip to content

Commit

Permalink
Merge pull request #49860 from andrew-d/andrew/upgrade-libtiff
Browse files Browse the repository at this point in the history
libtiff: 4.0.9 -> 2018-11-04
  • Loading branch information
Mic92 authored Nov 10, 2018
2 parents cc1bcd7 + 3137c60 commit f2d2a8f
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions pkgs/development/libraries/libtiff/default.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, xz }:
{ stdenv
, fetchFromGitLab

let
version = "4.0.9";
in
stdenv.mkDerivation rec {
name = "libtiff-${version}";
, pkgconfig
, autogen
, autoconf
, automake
, libtool

src = fetchurl {
url = "https://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
sha256 = "1kfg4q01r4mqn7dj63ifhi6pmqzbf4xax6ni6kkk81ri5kndwyvf";
};
, zlib
, libjpeg
, xz
}:

prePatch = let
debian = fetchurl {
# When the URL disappears, it typically means that Debian has new patches
# (probably security) and updating to new tarball will apply them as well.
url = http://http.debian.net/debian/pool/main/t/tiff/tiff_4.0.9-6.debian.tar.xz;
sha256 = "10yk5npchxscgsnd7ihd3bbbw2fxkl7ni0plm43c9q4nwp6ms52f";
};
in ''
tar xf ${debian}
patches="$patches $(sed 's|^|debian/patches/|' < debian/patches/series)"
'';
stdenv.mkDerivation rec {
version = "2018-11-04";
name = "libtiff-unstable-${version}";

src = fetchFromGitLab {
owner = "libtiff";
repo = "libtiff";
rev = "779e54ca32b09155c10d398227a70038de399d7d";
sha256 = "029fmn0rdmb5gxhg83ff9j2zx3qk6wsiaiv554jq26pdc23achsp";
};

outputs = [ "bin" "dev" "out" "man" "doc" ];

nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig autogen autoconf automake libtool ];

propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)

enableParallelBuilding = true;

preConfigure = "./autogen.sh";

doCheck = true; # not cross;

meta = with stdenv.lib; {
Expand Down

0 comments on commit f2d2a8f

Please sign in to comment.