@@ -1,14 +1,19 @@
1−{ stdenv, fetchurl, libtiff }:
1+{ stdenv, fetchurl, libtiff, libjpeg, proj, zlib}:
22
3−stdenv.mkDerivation {
4− name = "libgeotiff-1.2.5";
3+stdenv.mkDerivation rec {
4+ version = "1.4.2";
5+ name = "libgeotiff-${version}";
56
67 src = fetchurl {
7− url = http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.2.5.tar.gz;
8− sha256 = "0z2yx77pm0zs81hc0b4lwzdd5s0rxcbylnscgq80b649src1fyzj";
8+ url = "http://download.osgeo.org/geotiff/libgeotiff/${name}.tar.gz";
9+ sha256 = "0vjy3bwfhljjx66p9w999i4mdhsf7vjshx29yc3pn5livf5091xd";
910 };
1011
11− buildInputs = [ libtiff ];
12+ configureFlags = [
13+ "--with-jpeg=${libjpeg.dev}"
14+ "--with-zlib=${zlib.dev}"
15+ ];
16+ buildInputs = [ libtiff proj ];
1217
1318 hardeningDisable = [ "format" ];
1419