2022-04-15 01:41:22 +00:00
|
|
|
{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
buildMongoDB = callPackage ./mongodb.nix {
|
|
|
|
inherit sasl boost Security CoreFoundation cctools;
|
|
|
|
};
|
|
|
|
variants = if stdenv.isLinux then
|
|
|
|
{
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "5.0.19";
|
|
|
|
sha256 = "sha256-dApoEgAPEf2r1mMgs9VAJiHLBLoASETWXToR5Kx7qd4=";
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [ ./fix-build-with-boost-1.79-5_0-linux.patch ];
|
2022-04-15 01:41:22 +00:00
|
|
|
}
|
2023-07-15 17:15:38 +00:00
|
|
|
else lib.optionalAttrs stdenv.isDarwin
|
2022-04-15 01:41:22 +00:00
|
|
|
{
|
|
|
|
version = "5.0.3"; # at least darwin has to stay on 5.0.3 until the SDK used by nixpkgs is bumped to 10.13
|
|
|
|
sha256 = "1p9pq0dfd6lynvnz5p1c8dqp4filzrz86j840xwxwx82dm1zl6p0";
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [ ./fix-build-with-boost-1.79-5_0.patch ]; # no darwin in name to prevent unnecessary rebuild
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
buildMongoDB {
|
|
|
|
version = variants.version;
|
|
|
|
sha256 = variants.sha256;
|
|
|
|
patches = [
|
|
|
|
./forget-build-dependencies-4-4.patch
|
|
|
|
./asio-no-experimental-string-view-4-4.patch
|
2022-09-14 18:05:37 +00:00
|
|
|
./fix-gcc-Wno-exceptions-5.0.patch
|
2023-07-15 17:15:38 +00:00
|
|
|
] ++ variants.patches;
|
2022-04-15 01:41:22 +00:00
|
|
|
}
|