pacemaker: add versionCheckHook

This commit is contained in:
Stefan Frijters
2026-05-24 22:49:32 +02:00
parent 56edd414f6
commit 6c5cff998a
+6
View File
@@ -21,6 +21,7 @@
pkg-config,
python3,
nixosTests,
versionCheckHook,
# Pacemaker is compiled twice, once with forOCF = true to extract its
# OCF definitions for use in the ocf-resource-agents derivation, then
@@ -100,6 +101,11 @@ stdenv.mkDerivation (finalAttrs: {
rm -r $out/nix
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = [ "${placeholder "out"}/sbin/pacemakerd" ];
versionCheckProgramArg = "--version";
passthru.tests = {
inherit (nixosTests) pacemaker;
};