blob: 32b1c935c26b103b2b5cf50f313d74a5008138a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
stdenv,
callPackage,
sasl,
boost,
cctools,
avxSupport ? stdenv.hostPlatform.avxSupport,
nixosTests,
lib,
}:
let
buildMongoDB = callPackage ./mongodb.nix {
inherit
sasl
boost
cctools
stdenv
;
};
in
buildMongoDB {
inherit avxSupport;
version = "7.0.40";
hash = "sha256-0KDqI/tMxklGkOvXcehmufiWvmNrf8Jj2llCH91gNlw=";
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;
};
}
|