From 9ef03257bb6c3c4f5855547b0aef8fbd3646af30 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 2 Aug 2023 16:17:45 +0200 Subject: [PATCH] mongodb: fix build Without this being set, the build fails, because it can't find crypto.h during configure phase. --- pkgs/servers/nosql/mongodb/mongodb.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/nosql/mongodb/mongodb.nix b/pkgs/servers/nosql/mongodb/mongodb.nix index ea4ac699d4d0..ff82755d8cd7 100644 --- a/pkgs/servers/nosql/mongodb/mongodb.nix +++ b/pkgs/servers/nosql/mongodb/mongodb.nix @@ -149,6 +149,9 @@ in stdenv.mkDerivation rec { ] ++ lib.optionals (versionAtLeast version "4.4") [ "--link-model=static" ] ++ map (lib: "--use-system-${lib}") system-libraries; + # This seems to fix mongodb not able to find OpenSSL's crypto.h during build + hardeningDisable = [ "fortify3" ]; + preBuild = '' sconsFlags+=" CC=$CC" sconsFlags+=" CXX=$CXX"