nixpkgs/pkgs/development/libraries/libtiff/default.nix

34 lines
858 B
Nix
Raw Normal View History

2015-05-13 15:31:26 +02:00
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, xz }:
let
2015-09-01 00:30:19 +02:00
version = "4.0.5";
in
stdenv.mkDerivation rec {
name = "libtiff-${version}";
2012-09-26 20:59:48 +02:00
src = fetchurl {
urls =
[ "ftp://ftp.remotesensing.org/pub/libtiff/tiff-${version}.tar.gz"
"http://download.osgeo.org/libtiff/tiff-${version}.tar.gz"
];
2015-09-01 00:30:19 +02:00
sha256 = "171hgy4mylwmvdm7gp6ffjva81m4j56v3fbqsbfl7avzxn1slpp2";
};
2015-07-27 00:25:53 +02:00
outputs = [ "out" "doc" "man" ];
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
enableParallelBuilding = true;
doCheck = true;
meta = with stdenv.lib; {
description = "Library and utilities for working with the TIFF image file format";
homepage = http://www.remotesensing.org/libtiff/;
license = licenses.libtiff;
platforms = platforms.unix;
};
}