mongodb-ce: unbreak on darwin

Co-Authored-By: FlameFlag <git@ps1.sh>
(cherry picked from commit 651f3b12fd)
This commit is contained in:
Pol Dellaiera 2026-06-27 11:44:48 +02:00 committed by github-actions[bot]
commit 03de371289

View file

@ -49,6 +49,11 @@ stdenv.mkDerivation (finalAttrs: {
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/mongod";
# Apple's LibreSSL tries to read this while running `mongod --version`
sandboxProfile = lib.optionalString stdenv.hostPlatform.isDarwin ''
(allow file-read* (literal "/private/etc/ssl/openssl.cnf"))
'';
passthru = {
sources = {
"x86_64-linux" = fetchurl {