vips: add passthru.updateScript

This commit is contained in:
Anthony Roussel
2023-11-12 13:34:42 +01:00
parent 390190b64e
commit 40d48a14d2
+8 -2
View File
@@ -37,6 +37,7 @@
, libheif
, cgif
, testers
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
@@ -110,8 +111,13 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional (imagemagick == null) "-Dmagick=disabled"
;
passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
passthru = {
tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "v([0-9.]+)" ];
};
};
meta = with lib; {