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; };