From 1be4226669a58a64db6118c5d257ceaee02589cd Mon Sep 17 00:00:00 2001 From: Doro Rose Date: Wed, 2 Mar 2022 11:58:01 +0100 Subject: [PATCH] mongodb: add 5.0 --- pkgs/servers/nosql/mongodb/5.0.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 7 +++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/servers/nosql/mongodb/5.0.nix diff --git a/pkgs/servers/nosql/mongodb/5.0.nix b/pkgs/servers/nosql/mongodb/5.0.nix new file mode 100644 index 000000000000..c02b27d6ee61 --- /dev/null +++ b/pkgs/servers/nosql/mongodb/5.0.nix @@ -0,0 +1,25 @@ +{ 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.5"; + sha256 = "1nny7a3w6pk8z9cwsz8kgk7gvf8lh5xb3r24drlr7wv970h90826"; + } + else + { + 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"; + }; +in +buildMongoDB { + version = variants.version; + sha256 = variants.sha256; + patches = [ + ./forget-build-dependencies-4-4.patch + ./asio-no-experimental-string-view-4-4.patch + ]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cab37a8f14ea..6c94d13e3a98 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21795,6 +21795,13 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; }; + mongodb-5_0 = callPackage ../servers/nosql/mongodb/5.0.nix { + sasl = cyrus_sasl; + boost = boost17x.override { enableShared = false; }; + inherit (darwin) cctools; + inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; + }; + nginx-sso = callPackage ../servers/nginx-sso { }; percona-server56 = callPackage ../servers/sql/percona/5.6.x.nix { };