31 stdenv.mkDerivation (finalAttrs: {
35 src = fetchFromGitLab {
38 rev = "v${finalAttrs.version}";
39 hash = "sha256-SuK9/a6OUAumEe1kz1itFJGKxJzbmHkBVLMnyXhIwmQ=";
43 # libc++abi 11 has an `#include <version>`, this picks up files name
44 # `version` in the project's include paths
45 ./rename-version.patch
50 mv VERSION VERSION.txt
63 mkdir -p $dev_private/include
64 mv -t $dev_private/include \
65 libtiff/tif_config.h \
66 ../libtiff/tif_dir.h \
67 ../libtiff/tif_hash_set.h \
82 # TODO: opengl support (bogus configure detection)
83 propagatedBuildInputs = [
86 # libwebp depends on us; this will cause infinite
88 (libwebp.override { tiffSupport = false; })
95 "-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON"
98 enableParallelBuilding = true;
101 # Avoid flakiness like https://gitlab.com/libtiff/libtiff/-/commit/94f6f7315b1
102 enableParallelChecking = false;
114 inherit (python3Packages) pillow imread;
115 pkg-config = testers.hasPkgConfigModules {
116 package = finalAttrs.finalPackage;
119 updateScript = nix-update-script { };
123 description = "Library and utilities for working with the TIFF image file format";
124 homepage = "https://libtiff.gitlab.io/libtiff";
125 changelog = "https://libtiff.gitlab.io/libtiff/releases/v${finalAttrs.version}.html";
126 license = licenses.libtiff;
127 platforms = platforms.unix ++ platforms.windows;
128 pkgConfigModules = [ "libtiff-4" ];
129 maintainers = teams.geospatial.members;