From 66708165f9ec311b039301eef5425c367f70d2a4 Mon Sep 17 00:00:00 2001 From: Niklas Korz Date: Sun, 26 Jan 2025 23:24:24 +0100 Subject: [PATCH] mongodb-ce: only enable version install check on darwin --- pkgs/by-name/mo/mongodb-ce/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mo/mongodb-ce/package.nix b/pkgs/by-name/mo/mongodb-ce/package.nix index 2fd6497c3ed0..1e9e4d04739d 100644 --- a/pkgs/by-name/mo/mongodb-ce/package.nix +++ b/pkgs/by-name/mo/mongodb-ce/package.nix @@ -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 = {