Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
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.22";
|
|
sha256 = "sha256-Je4vPG8tz1vqCEXzWyYi5KWQaxzlH0hOKSpWBgPs0Hs=";
|
|
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;
|
|
};
|
|
}
|