reaction: add versionCheckHook
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
@@ -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; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user