mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
parent
f2de05f59b
commit
9f39226978
12
pkgs/servers/nosql/mongodb/6.0.nix
Normal file
12
pkgs/servers/nosql/mongodb/6.0.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }:
|
||||
|
||||
let
|
||||
buildMongoDB = callPackage ./mongodb.nix {
|
||||
inherit sasl boost Security CoreFoundation cctools;
|
||||
};
|
||||
in
|
||||
buildMongoDB {
|
||||
version = "6.0.1";
|
||||
sha256 = "sha256-3LdyPHj2t7JskCJh6flCYl6qjfAbRXHsi+19L+0O2Zs=";
|
||||
patches = [ ];
|
||||
}
|
|
@ -31,7 +31,23 @@ with lib;
|
|||
|
||||
let
|
||||
variants =
|
||||
if versionAtLeast version "4.2" then rec {
|
||||
if versionAtLeast version "6.0" then rec {
|
||||
python = scons.python.withPackages (ps: with ps; [
|
||||
pyyaml
|
||||
cheetah3
|
||||
psutil
|
||||
setuptools
|
||||
packaging
|
||||
pymongo
|
||||
]);
|
||||
|
||||
# 4.2 < mongodb <= 6.0.x needs scons 3.x built with python3
|
||||
scons = sconsPackages.scons_3_1_2.override { python = python3; };
|
||||
|
||||
mozjsVersion = "60";
|
||||
mozjsReplace = "defined(HAVE___SINCOS)";
|
||||
|
||||
} else if versionAtLeast version "4.2" then rec {
|
||||
python = scons.python.withPackages (ps: with ps; [
|
||||
pyyaml
|
||||
cheetah3
|
||||
|
@ -164,7 +180,10 @@ in stdenv.mkDerivation rec {
|
|||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
installTargets = if (versionAtLeast version "4.4") then "install-core" else "install";
|
||||
installTargets =
|
||||
if (versionAtLeast version "6.0") then "install-devcore"
|
||||
else if (versionAtLeast version "4.4") then "install-core"
|
||||
else "install";
|
||||
|
||||
prefixKey = if (versionAtLeast version "4.4") then "DESTDIR=" else "--prefix=";
|
||||
|
||||
|
|
|
@ -23287,6 +23287,13 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||
};
|
||||
|
||||
mongodb-6_0 = callPackage ../servers/nosql/mongodb/6.0.nix {
|
||||
sasl = cyrus_sasl;
|
||||
boost = boost178.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 { stdenv = gcc10StdenvCompat; };
|
||||
|
|
Loading…
Reference in a new issue