vips: add passthru.tests.version

This commit is contained in:
Anthony Roussel 2023-11-11 15:03:13 +01:00
parent 40d48a14d2
commit 6394c80e24
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -112,8 +112,14 @@ stdenv.mkDerivation (finalAttrs: {
;
passthru = {
tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
tests = {
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "vips --version";
};
};
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "v([0-9.]+)" ];