Commit 69baf213 authored by 06kellyjac's avatar 06kellyjac
Browse files

witness: switch to versionCheckHook

parent f2b7d7b9
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -4,13 +4,10 @@
  buildGoModule,
  fetchFromGitHub,

  # testing
  testers,
  witness,

  buildPackages,
  installShellFiles,

  buildPackages,
  versionCheckHook,
}:

buildGoModule rec {
@@ -60,11 +57,11 @@ buildGoModule rec {
        --zsh <(${exe} completion zsh)
    '';

  passthru.tests.version = testers.testVersion {
    package = witness;
    command = "witness version";
    version = "v${version}";
  };
  doInstallCheck = true;
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = "version";

  meta = {
    description = "Pluggable framework for software supply chain security. Witness prevents tampering of build materials and verifies the integrity of the build process from source to target";