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

48 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv
2018-11-27 10:11:03 +00:00
, fetchurl
, pkgconfig
, cmake
, zlib
, libjpeg
, xz
}:
stdenv.mkDerivation rec {
2019-11-06 16:04:00 +00:00
version = "4.1.0";
pname = "libtiff";
2018-11-27 10:11:03 +00:00
src = fetchurl {
url = "https://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
2019-11-06 16:04:00 +00:00
sha256 = "0d46bdvxdiv59lxnb0xz9ywm8arsr6xsapi5s6y6vnys2wjz6aax";
};
# FreeImage needs this patch
patches = [ ./headers.patch ];
2014-08-26 23:14:09 +00:00
outputs = [ "bin" "dev" "dev_private" "out" "man" "doc" ];
postFixup = ''
moveToOutput include/tif_dir.h $dev_private
moveToOutput include/tif_config.h $dev_private
moveToOutput include/tiffiop.h $dev_private
'';
nativeBuildInputs = [ cmake pkgconfig ];
propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
enableParallelBuilding = true;
doInstallCheck = true;
installCheckTarget = "test";
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;
};
}