notation: switch to versionCheckHook

This commit is contained in:
06kellyjac
2025-11-13 16:00:50 +00:00
parent 6d2c02483f
commit 4e550ce0eb
+7 -5
View File
@@ -3,10 +3,11 @@
buildGoModule,
fetchFromGitHub,
installShellFiles,
testers,
stdenv,
buildPackages,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
@@ -53,10 +54,11 @@ buildGoModule (finalAttrs: {
--zsh <(${exe} completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "notation version";
};
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "version";
meta = {
description = "CLI tool to sign and verify OCI artifacts and container images";