mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
37 lines
781 B
Nix
37 lines
781 B
Nix
{ stdenv
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, zlib
|
|
, libjpeg
|
|
, xz
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "4.0.10";
|
|
pname = "libtiff";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
|
|
sha256 = "1r4np635gr6zlc0bic38dzvxia6iqzcrary4n1ylarzpr8fd2lic";
|
|
};
|
|
|
|
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true; # not cross;
|
|
|
|
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;
|
|
};
|
|
}
|