mongodb-ce: only enable version install check on darwin (#377147)
This commit is contained in:
@@ -66,7 +66,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgram = "${placeholder "out"}/bin/mongod";
|
||||
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 = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user