1 { stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }:
4 buildMongoDB = callPackage ./mongodb.nix {
5 inherit sasl boost Security CoreFoundation cctools;
7 variants = if stdenv.isLinux then
10 sha256 = "sha256-6CVQOHN3yFTq6OyVkZMYEjIKfFbQZ6M5KAa3k7qv4Gc=";
11 patches = [ ./fix-build-with-boost-1.79-5_0-linux.patch ];
13 else lib.optionalAttrs stdenv.isDarwin
15 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
16 sha256 = "1p9pq0dfd6lynvnz5p1c8dqp4filzrz86j840xwxwx82dm1zl6p0";
17 patches = [ ./fix-build-with-boost-1.79-5_0.patch ]; # no darwin in name to prevent unnecessary rebuild
21 version = variants.version;
22 sha256 = variants.sha256;
24 ./forget-build-dependencies-4-4.patch
25 ./asio-no-experimental-string-view-4-4.patch
26 ./fix-gcc-Wno-exceptions-5.0.patch
27 ] ++ variants.patches;