Commit ff7761f3 authored by Thomas Gerbet's avatar Thomas Gerbet
Browse files

zizmor: use versionCheckHook

parent 16c64d30
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -3,8 +3,7 @@
  fetchFromGitHub,
  nix-update-script,
  rustPlatform,
  testers,
  zizmor,
  versionCheckHook,
}:

rustPlatform.buildRustPackage rec {
@@ -21,9 +20,9 @@ rustPlatform.buildRustPackage rec {
  useFetchCargoVendor = true;
  cargoHash = "sha256-CRjr4X525t7xaFsnX3gOy4+HJis5T8nw6zrhkW60Bpw=";

  passthru.tests.version = testers.testVersion {
    package = zizmor;
  };
  nativeInstallCheckInputs = [ versionCheckHook ];

  doInstallCheck = true;

  passthru.updateScript = nix-update-script { };