diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/nosql/mongodb')
-rw-r--r-- | nixpkgs/pkgs/servers/nosql/mongodb/6.0.nix | 3 | ||||
-rw-r--r-- | nixpkgs/pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch | 12 | ||||
-rw-r--r-- | nixpkgs/pkgs/servers/nosql/mongodb/mongodb.nix | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/nosql/mongodb/6.0.nix b/nixpkgs/pkgs/servers/nosql/mongodb/6.0.nix index edc7ee047466..b17c41916928 100644 --- a/nixpkgs/pkgs/servers/nosql/mongodb/6.0.nix +++ b/nixpkgs/pkgs/servers/nosql/mongodb/6.0.nix @@ -9,6 +9,9 @@ buildMongoDB { version = "6.0.13"; sha256 = "sha256-BD3XrTdv4sCa3h37o1A2s3/R0R8zHiR59a4pY0RxLGU="; patches = [ + # Patches a bug that it couldn't build MongoDB 6.0 on gcc 13 because a include in ctype.h was missing + ./fix-gcc-13-ctype-6_0.patch + (fetchpatch { name = "mongodb-6.1.0-rc-more-specific-cache-alignment-types.patch"; url = "https://github.com/mongodb/mongo/commit/5435f9585f857f6145beaf6d31daf336453ba86f.patch"; diff --git a/nixpkgs/pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch b/nixpkgs/pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch new file mode 100644 index 000000000000..5473997e56c9 --- /dev/null +++ b/nixpkgs/pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch @@ -0,0 +1,12 @@ +diff --git a/src/mongo/util/ctype.h b/src/mongo/util/ctype.h +index a3880e2..78ee57e 100644 +--- a/src/mongo/util/ctype.h ++++ b/src/mongo/util/ctype.h +@@ -67,6 +67,7 @@ + #pragma once + + #include <array> ++#include <cstdint> + + namespace mongo::ctype { + namespace detail { diff --git a/nixpkgs/pkgs/servers/nosql/mongodb/mongodb.nix b/nixpkgs/pkgs/servers/nosql/mongodb/mongodb.nix index 928e50a0ae8c..a51144c48d4e 100644 --- a/nixpkgs/pkgs/servers/nosql/mongodb/mongodb.nix +++ b/nixpkgs/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'" |