From 4e550ce0eb9fe84901413569685b9e15dbda04ea Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Thu, 13 Nov 2025 14:40:33 +0000 Subject: [PATCH] notation: switch to versionCheckHook --- pkgs/by-name/no/notation/package.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/no/notation/package.nix b/pkgs/by-name/no/notation/package.nix index 21cef5758c2b..74b6b09ca5e9 100644 --- a/pkgs/by-name/no/notation/package.nix +++ b/pkgs/by-name/no/notation/package.nix @@ -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";