Merge pull request #311820 from dotlambda/imagemagick

imagemagick: fix passthru.tests.pkg-config
This commit is contained in:
Aleksana 2024-05-24 15:01:42 +08:00 committed by GitHub
commit 3e4b79f710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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; {