about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2024-05-14 19:32:49 -0700
committerRobert Schütz <nix@dotlambda.de>2024-05-14 19:32:51 -0700
commit7f301eab1b3989fefb49f6c1f4edd7eb7b274756 (patch)
treec7b15bef28605c8212ee70ebeabb770b32fd17c6
parent7e93be61ad10c6c7a15b3e72fcfce3425a1b42bd (diff)
imagemagick: fix passthru.tests.pkg-config
The version suffix starting with "-" is not present in the pkg-config
file.
-rw-r--r--pkgs/applications/graphics/ImageMagick/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix
index c15af9d94fb28..608e7bc506123 100644
--- a/pkgs/applications/graphics/ImageMagick/default.nix
+++ b/pkgs/applications/graphics/ImageMagick/default.nix
@@ -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; {