mongodb-ce: migrate from version tester to install version check

This commit is contained in:
Niklas Korz
2025-01-22 15:24:01 +01:00
parent 9e1806e012
commit 1accb05921
+6 -6
View File
@@ -5,8 +5,7 @@
autoPatchelfHook,
curl,
openssl,
testers,
mongodb-ce,
versionCheckHook,
writeShellApplication,
jq,
nix-update,
@@ -64,6 +63,11 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/mongod";
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru = {
updateScript =
@@ -105,10 +109,6 @@ stdenv.mkDerivation (finalAttrs: {
tests = {
inherit (nixosTests) mongodb-ce;
version = testers.testVersion {
package = mongodb-ce;
command = "mongod --version";
};
};
};