about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libtiff
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libtiff')
-rw-r--r--nixpkgs/pkgs/development/libraries/libtiff/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libtiff/default.nix b/nixpkgs/pkgs/development/libraries/libtiff/default.nix
new file mode 100644
index 000000000000..3d3b3529483a
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libtiff/default.nix
@@ -0,0 +1,36 @@
+{ lib, stdenv
+, fetchurl
+
+, pkg-config
+
+, zlib
+, libjpeg
+, xz
+}:
+
+stdenv.mkDerivation rec {
+  version = "4.1.0";
+  pname = "libtiff";
+
+  src = fetchurl {
+    url = "https://download.osgeo.org/libtiff/tiff-${version}.tar.gz";
+    sha256 = "0d46bdvxdiv59lxnb0xz9ywm8arsr6xsapi5s6y6vnys2wjz6aax";
+  };
+
+  outputs = [ "bin" "dev" "out" "man" "doc" ];
+
+  nativeBuildInputs = [ pkg-config ];
+
+  propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
+
+  enableParallelBuilding = true;
+
+  doCheck = true; # not cross;
+
+  meta = with 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;
+  };
+}