2024-07-27 06:49:29 +00:00
|
|
|
{ stdenv, callPackage, fetchpatch
|
2024-06-20 14:57:18 +00:00
|
|
|
, sasl, boost, Security, CoreFoundation, cctools
|
|
|
|
, avxSupport ? stdenv.hostPlatform.avxSupport
|
|
|
|
}:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildMongoDB = callPackage ./mongodb.nix {
|
2022-12-28 21:21:41 +00:00
|
|
|
inherit sasl boost Security CoreFoundation cctools stdenv;
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
buildMongoDB {
|
2024-06-20 14:57:18 +00:00
|
|
|
inherit avxSupport;
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "6.0.17";
|
|
|
|
sha256 = "sha256-rGGAu2B0gAAE/n0NSdVm7Me2YeChZhDGWehvzcBJTi8=";
|
2023-03-27 19:17:25 +00:00
|
|
|
patches = [
|
2024-04-21 15:54:59 +00:00
|
|
|
# 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
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "mongodb-6.1.0-rc-more-specific-cache-alignment-types.patch";
|
|
|
|
url = "https://github.com/mongodb/mongo/commit/5435f9585f857f6145beaf6d31daf336453ba86f.patch";
|
|
|
|
sha256 = "sha256-gWlE2b/NyGe2243iNCXzjcERIY8/4ZWI4Gjh5SF0tYA=";
|
|
|
|
})
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# Fix building with python 3.12 since the imp module was removed
|
|
|
|
./mongodb-python312.patch
|
2023-03-27 19:17:25 +00:00
|
|
|
];
|
2024-09-19 14:19:46 +00:00
|
|
|
# passthru.tests = { inherit (nixosTests) mongodb; }; # currently tests mongodb-5_0
|
2022-10-21 18:38:19 +00:00
|
|
|
}
|