From cb52c9bb10d42ecd746134d92a10348e6b922afc Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Sun, 17 Mar 2024 22:47:33 -0400 Subject: [PATCH] mongodb: Fix darwin --- pkgs/servers/nosql/mongodb/mongodb.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/nosql/mongodb/mongodb.nix b/pkgs/servers/nosql/mongodb/mongodb.nix index 928e50a0ae8c..a51144c48d4e 100644 --- a/pkgs/servers/nosql/mongodb/mongodb.nix +++ b/pkgs/servers/nosql/mongodb/mongodb.nix @@ -144,6 +144,7 @@ in stdenv.mkDerivation rec { preBuild = '' sconsFlags+=" CC=$CC" sconsFlags+=" CXX=$CXX" + '' + optionalString (!stdenv.isDarwin) '' sconsFlags+=" AR=$AR" '' + optionalString stdenv.isAarch64 '' sconsFlags+=" CCFLAGS='-march=armv8-a+crc'"