yubico-piv-tool: add meta.pkgConfigModules, passthru.tests.pkg-config

This commit is contained in:
Anthony Roussel
2024-05-07 15:24:44 +02:00
parent b211b392b8
commit a456465e6b
+7 -3
View File
@@ -60,9 +60,12 @@ stdenv.mkDerivation (finalAttrs: {
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "yubico-piv-tool-([0-9.]+)$" ];
};
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "yubico-piv-tool --version";
tests = {
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "yubico-piv-tool --version";
};
};
};
@@ -84,5 +87,6 @@ stdenv.mkDerivation (finalAttrs: {
platforms = platforms.all;
maintainers = with maintainers; [ viraptor anthonyroussel ];
mainProgram = "yubico-piv-tool";
pkgConfigModules = [ "ykcs11" "ykpiv" ];
};
})