lol

libtiff: add pkgConfigModules metadata and corresponding test

do note that while the test added ran and passed there were failing
tests.

authored by

Eldritch Cookie and committed by
Rodney Lorrimar
511914a5 81bf7630

+9 -4
+9 -4
pkgs/development/libraries/libtiff/default.nix
··· 20 20 , gdal 21 21 , openimageio 22 22 , freeimage 23 + , testers 23 24 }: 24 25 25 - stdenv.mkDerivation rec { 26 + stdenv.mkDerivation (finalAttrs: { 26 27 pname = "libtiff"; 27 28 version = "4.6.0"; 28 29 ··· 32 33 src = fetchFromGitLab { 33 34 owner = "libtiff"; 34 35 repo = "libtiff"; 35 - rev = "v${version}"; 36 + rev = "v${finalAttrs.version}"; 36 37 hash = "sha256-qCg5qjsPPynCHIg0JsPJldwVdcYkI68zYmyNAKUCoyw="; 37 38 }; 38 39 ··· 77 78 tests = { 78 79 inherit libgeotiff imagemagick graphicsmagick gdal openimageio freeimage; 79 80 inherit (python3Packages) pillow imread; 81 + pkg-config = testers.hasPkgConfigModules { 82 + package = finalAttrs.finalPackage; 83 + }; 80 84 }; 81 85 updateScript = nix-update-script { }; 82 86 }; ··· 84 88 meta = with lib; { 85 89 description = "Library and utilities for working with the TIFF image file format"; 86 90 homepage = "https://libtiff.gitlab.io/libtiff"; 87 - changelog = "https://libtiff.gitlab.io/libtiff/v${version}.html"; 91 + changelog = "https://libtiff.gitlab.io/libtiff/v${finalAttrs.version}.html"; 88 92 license = licenses.libtiff; 89 93 platforms = platforms.unix; 94 + pkgConfigModules = [ "libtiff-4" ]; 90 95 }; 91 - } 96 + })