dae: add versionCheckHook
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
clang,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
versionCheckHook,
|
||||
nixosTests,
|
||||
nix-update-script,
|
||||
}:
|
||||
@@ -49,6 +50,12 @@ buildGoModule (finalAttrs: {
|
||||
--replace-fail "/usr/bin/dae" "$out/bin/dae"
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) dae;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user