forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / servers / nosql / mongodb / 6.0.nix
bloba3567e5234d8079eb34bfc486b64a9a8b095f2bb
1 { stdenv, callPackage, fetchpatch
2 , sasl, boost, Security, CoreFoundation, cctools
3 , avxSupport ? stdenv.hostPlatform.avxSupport
4 }:
6 let
7   buildMongoDB = callPackage ./mongodb.nix {
8     inherit sasl boost Security CoreFoundation cctools stdenv;
9   };
11 buildMongoDB {
12   inherit avxSupport;
13   version = "6.0.17";
14   sha256 = "sha256-rGGAu2B0gAAE/n0NSdVm7Me2YeChZhDGWehvzcBJTi8=";
15   patches = [
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
19     (fetchpatch {
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=";
23     })
25     # Fix building with python 3.12 since the imp module was removed
26     ./mongodb-python312.patch
27   ];
28   # passthru.tests = { inherit (nixosTests) mongodb; }; # currently tests mongodb-7_0