Unverified Commit 3e6e83db authored by phanirithvij's avatar phanirithvij
Browse files

reaction: add versionCheckHook

parent 0edd4f94
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4,8 +4,9 @@
  nixosTests,
  rustPlatform,
  fetchFromGitLab,
  nix-update-script,
  versionCheckHook,
  installShellFiles,
  nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "reaction";
@@ -53,6 +54,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
    install -Dm444 config/example* config/README.md $out/share/examples
  '';

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

  passthru.updateScript = nix-update-script { };
  passthru.tests = { inherit (nixosTests) reaction reaction-firewall; };