1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00

libtiff: add pkgConfigModules metadata and corresponding test

do note that while the test added ran and passed there were failing
tests.
This commit is contained in:
Eldritch Cookie 2024-01-12 18:08:46 -03:00 committed by Rodney Lorrimar
parent 81bf7630b9
commit 511914a5fe
No known key found for this signature in database
GPG key ID: D8B75C95FB4D1143

View file

@ -20,9 +20,10 @@
, gdal
, openimageio
, freeimage
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libtiff";
version = "4.6.0";
@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitLab {
owner = "libtiff";
repo = "libtiff";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-qCg5qjsPPynCHIg0JsPJldwVdcYkI68zYmyNAKUCoyw=";
};
@ -77,6 +78,9 @@ stdenv.mkDerivation rec {
tests = {
inherit libgeotiff imagemagick graphicsmagick gdal openimageio freeimage;
inherit (python3Packages) pillow imread;
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
};
updateScript = nix-update-script { };
};
@ -84,8 +88,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Library and utilities for working with the TIFF image file format";
homepage = "https://libtiff.gitlab.io/libtiff";
changelog = "https://libtiff.gitlab.io/libtiff/v${version}.html";
changelog = "https://libtiff.gitlab.io/libtiff/v${finalAttrs.version}.html";
license = licenses.libtiff;
platforms = platforms.unix;
pkgConfigModules = [ "libtiff-4" ];
};
}
})