depot/third_party/nixpkgs/pkgs/servers/nosql/mongodb/7.0.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

46 lines
1.1 KiB
Nix

{
stdenv,
callPackage,
sasl,
boost,
Security,
CoreFoundation,
cctools,
avxSupport ? stdenv.hostPlatform.avxSupport,
nixosTests,
lib,
}:
let
buildMongoDB = callPackage ./mongodb.nix {
inherit
sasl
boost
Security
CoreFoundation
cctools
stdenv
;
};
in
buildMongoDB {
inherit avxSupport;
version = "7.0.14";
sha256 = "sha256-3NUv/Rr6V0rH6zHCXJwHZ7ZQOqMJvYGessNVemUF6g0=";
patches = [
# ModuleNotFoundError: No module named 'mongo_tooling_metrics':
# NameError: name 'SConsToolingMetrics' is not defined:
# The recommended linker 'lld' is not supported with the current compiler configuration, you can try the 'gold' linker with '--linker=gold'.
./mongodb7-SConstruct.patch
# Fix building with python 3.12 since the imp module was removed
./mongodb-python312.patch
# mongodb-7_0's mozjs uses avx2 instructions
# https://github.com/GermanAizek/mongodb-without-avx/issues/16
] ++ lib.optionals (!avxSupport) [ ./mozjs-noavx.patch ];
passthru.tests = {
inherit (nixosTests) mongodb;
};
}