diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/nosql/mongodb/5.0.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/nosql/mongodb/5.0.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/nosql/mongodb/5.0.nix b/nixpkgs/pkgs/servers/nosql/mongodb/5.0.nix new file mode 100644 index 000000000000..2a26cb94eb16 --- /dev/null +++ b/nixpkgs/pkgs/servers/nosql/mongodb/5.0.nix @@ -0,0 +1,28 @@ +{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }: + +let + buildMongoDB = callPackage ./mongodb.nix { + inherit sasl boost Security CoreFoundation cctools; + }; + variants = if stdenv.isLinux then + { + version = "5.0.24"; + sha256 = "sha256-6CVQOHN3yFTq6OyVkZMYEjIKfFbQZ6M5KAa3k7qv4Gc="; + patches = [ ./fix-build-with-boost-1.79-5_0-linux.patch ]; + } + else lib.optionalAttrs stdenv.isDarwin + { + 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"; + patches = [ ./fix-build-with-boost-1.79-5_0.patch ]; # no darwin in name to prevent unnecessary rebuild + }; +in +buildMongoDB { + version = variants.version; + sha256 = variants.sha256; + patches = [ + ./forget-build-dependencies-4-4.patch + ./asio-no-experimental-string-view-4-4.patch + ./fix-gcc-Wno-exceptions-5.0.patch + ] ++ variants.patches; +} |