dae: add versionCheckHook

This commit is contained in:
mivorasu
2025-07-27 16:10:37 +08:00
parent f1eea15a95
commit e20629c39f
+7
View File
@@ -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;
};