From 3e6e83db9a9d8a0907201a7f26370d537ae37c69 Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Tue, 16 Dec 2025 14:50:19 +0530 Subject: [PATCH] reaction: add versionCheckHook Signed-off-by: phanirithvij --- pkgs/by-name/re/reaction/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/re/reaction/package.nix b/pkgs/by-name/re/reaction/package.nix index 3a14ac5a7add..6302d5ea6b8d 100644 --- a/pkgs/by-name/re/reaction/package.nix +++ b/pkgs/by-name/re/reaction/package.nix @@ -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; };