Unverified Commit 33dad69b authored by Stefan Frijters's avatar Stefan Frijters
Browse files

drbd: add versionCheckHook

parent 4a942596
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
  keyutils,
  udevCheckHook,
  gettext,
  versionCheckHook,

  # drbd-utils are compiled twice, once with forOCF = true to extract
  # its OCF definitions for use in the ocf-resource-agents derivation,
@@ -115,6 +116,9 @@ stdenv.mkDerivation (finalAttrs: {
  enableParallelBuilding = true;

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgram = [ "${placeholder "out"}/bin/drbdadm" ];
  versionCheckProgramArg = "--version";

  passthru.tests.drbd = nixosTests.drbd;