9 avxSupport ? stdenv.hostPlatform.avxSupport,
15 buildMongoDB = callPackage ./mongodb.nix {
29 sha256 = "sha256-3NUv/Rr6V0rH6zHCXJwHZ7ZQOqMJvYGessNVemUF6g0=";
31 # ModuleNotFoundError: No module named 'mongo_tooling_metrics':
32 # NameError: name 'SConsToolingMetrics' is not defined:
33 # The recommended linker 'lld' is not supported with the current compiler configuration, you can try the 'gold' linker with '--linker=gold'.
34 ./mongodb7-SConstruct.patch
36 # Fix building with python 3.12 since the imp module was removed
37 ./mongodb-python312.patch
39 # mongodb-7_0's mozjs uses avx2 instructions
40 # https://github.com/GermanAizek/mongodb-without-avx/issues/16
41 ] ++ lib.optionals (!avxSupport) [ ./mozjs-noavx.patch ];
44 inherit (nixosTests) mongodb;