imagemagick: fix passthru.tests.pkg-config

The version suffix starting with "-" is not present in the pkg-config
file.
This commit is contained in:
Robert Schütz 2024-05-14 19:32:49 -07:00
parent 7e93be61ad
commit 7f301eab1b

View File

@ -135,7 +135,10 @@ stdenv.mkDerivation (finalAttrs: {
inherit nixos-icons;
inherit (perlPackages) ImageMagick;
inherit (python3.pkgs) img2pdf;
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
version = lib.head (lib.splitString "-" finalAttrs.version);
};
};
meta = with lib; {