Skip to content

Commit

Permalink
mongodb: add 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Doro Rose authored and bachp committed Apr 9, 2022
1 parent 462b1e4 commit 1be4226
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkgs/servers/nosql/mongodb/5.0.nix
Original file line number Diff line number Diff line change
@@ -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
];
}
7 changes: 7 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 1be4226

Please sign in to comment.