mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
34 lines
862 B
Nix
34 lines
862 B
Nix
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, xz }:
|
|
|
|
let
|
|
version = "4.0.4beta";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "libtiff-${version}";
|
|
|
|
src = fetchurl {
|
|
urls =
|
|
[ "ftp://ftp.remotesensing.org/pub/libtiff/tiff-${version}.tar.gz"
|
|
"http://download.osgeo.org/libtiff/tiff-${version}.tar.gz"
|
|
];
|
|
sha256 = "0wj8d1iwk9vnpax2h29xqc2hwknxg3s0ay2d5pxkg59ihbifn6pa";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|