Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 991 B view raw
1{ 2 stdenv, 3 callPackage, 4 fetchpatch, 5 sasl, 6 boost, 7 cctools, 8 avxSupport ? stdenv.hostPlatform.avxSupport, 9}: 10 11let 12 buildMongoDB = callPackage ./mongodb.nix { 13 inherit 14 sasl 15 boost 16 cctools 17 stdenv 18 ; 19 }; 20in 21buildMongoDB { 22 inherit avxSupport; 23 version = "6.0.24"; 24 sha256 = "sha256-5Ip7uulbdb1rTzDWkPQjra035hA01bltPfvqnTm3tDw="; 25 patches = [ 26 # Patches a bug that it couldn't build MongoDB 6.0 on gcc 13 because a include in ctype.h was missing 27 ./fix-gcc-13-ctype-6_0.patch 28 29 (fetchpatch { 30 name = "mongodb-6.1.0-rc-more-specific-cache-alignment-types.patch"; 31 url = "https://github.com/mongodb/mongo/commit/5435f9585f857f6145beaf6d31daf336453ba86f.patch"; 32 sha256 = "sha256-gWlE2b/NyGe2243iNCXzjcERIY8/4ZWI4Gjh5SF0tYA="; 33 }) 34 35 # Fix building with python 3.12 since the imp module was removed 36 ./mongodb-python312.patch 37 ]; 38 # passthru.tests = { inherit (nixosTests) mongodb; }; # currently tests mongodb-7_0 39}