imagemagick: fix passthru.tests.pkg-config
The version suffix starting with "-" is not present in the pkg-config file.
This commit is contained in:
parent
7e93be61ad
commit
7f301eab1b
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user