mongodb-ce: only enable version install check on darwin (#377147)

This commit is contained in:
Pol Dellaiera
2025-01-27 04:41:48 +01:00
committed by GitHub
+5 -1
View File
@@ -66,7 +66,11 @@ stdenv.mkDerivation (finalAttrs: {
nativeInstallCheckInputs = [ versionCheckHook ]; nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/mongod"; versionCheckProgram = "${placeholder "out"}/bin/mongod";
versionCheckProgramArg = [ "--version" ]; versionCheckProgramArg = [ "--version" ];
doInstallCheck = true; # Only enable the version install check on darwin.
# On Linux, this would fail as mongod relies on tcmalloc, which
# requires access to `/sys/devices/system/cpu/possible`.
# See https://github.com/NixOS/nixpkgs/issues/377016
doInstallCheck = stdenv.hostPlatform.isDarwin;
passthru = { passthru = {