Commit 4e550ce0 authored by 06kellyjac's avatar 06kellyjac
Browse files

notation: switch to versionCheckHook

parent 6d2c0248
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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";