1 { stdenv, callPackage, fetchpatch
2 , sasl, boost, Security, CoreFoundation, cctools
3 , avxSupport ? stdenv.hostPlatform.avxSupport
7 buildMongoDB = callPackage ./mongodb.nix {
8 inherit sasl boost Security CoreFoundation cctools stdenv;
14 sha256 = "sha256-rGGAu2B0gAAE/n0NSdVm7Me2YeChZhDGWehvzcBJTi8=";
16 # Patches a bug that it couldn't build MongoDB 6.0 on gcc 13 because a include in ctype.h was missing
17 ./fix-gcc-13-ctype-6_0.patch
20 name = "mongodb-6.1.0-rc-more-specific-cache-alignment-types.patch";
21 url = "https://github.com/mongodb/mongo/commit/5435f9585f857f6145beaf6d31daf336453ba86f.patch";
22 sha256 = "sha256-gWlE2b/NyGe2243iNCXzjcERIY8/4ZWI4Gjh5SF0tYA=";
25 # Fix building with python 3.12 since the imp module was removed
26 ./mongodb-python312.patch
28 # passthru.tests = { inherit (nixosTests) mongodb; }; # currently tests mongodb-7_0