Skip to content

Commit

Permalink
mongodb{,-6_0}: use new apple sdk pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Jan 3, 2025
1 parent 0d2230e commit 67dfca0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
4 changes: 0 additions & 4 deletions pkgs/servers/nosql/mongodb/6.0.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
fetchpatch,
sasl,
boost,
Security,
CoreFoundation,
cctools,
avxSupport ? stdenv.hostPlatform.avxSupport,
}:
Expand All @@ -15,8 +13,6 @@ let
inherit
sasl
boost
Security
CoreFoundation
cctools
stdenv
;
Expand Down
4 changes: 0 additions & 4 deletions pkgs/servers/nosql/mongodb/7.0.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
callPackage,
sasl,
boost,
Security,
CoreFoundation,
cctools,
avxSupport ? stdenv.hostPlatform.avxSupport,
nixosTests,
Expand All @@ -16,8 +14,6 @@ let
inherit
sasl
boost
Security
CoreFoundation
cctools
stdenv
;
Expand Down
4 changes: 0 additions & 4 deletions pkgs/servers/nosql/mongodb/mongodb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
openssl,
libpcap,
curl,
Security,
CoreFoundation,
cctools,
xz,
}:
Expand Down Expand Up @@ -102,8 +100,6 @@ stdenv.mkDerivation rec {
zlib
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
Security
CoreFoundation
cctools
]
++ lib.optional stdenv.hostPlatform.isLinux net-snmp
Expand Down
20 changes: 2 additions & 18 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11735,30 +11735,14 @@ with pkgs;

mongodb = hiPrio mongodb-7_0;

mongodb-6_0 = darwin.apple_sdk_11_0.callPackage ../servers/nosql/mongodb/6.0.nix {
mongodb-6_0 = callPackage ../servers/nosql/mongodb/6.0.nix {
sasl = cyrus_sasl;
boost = boost178.override { enableShared = false; };
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
stdenv = if stdenv.hostPlatform.isDarwin then
darwin.apple_sdk_11_0.stdenv.override (old: {
hostPlatform = old.hostPlatform // { darwinMinVersion = "10.14"; };
buildPlatform = old.buildPlatform // { darwinMinVersion = "10.14"; };
targetPlatform = old.targetPlatform // { darwinMinVersion = "10.14"; };
}) else
if stdenv.cc.isClang then llvmPackages.stdenv else stdenv;
};

mongodb-7_0 = darwin.apple_sdk_11_0.callPackage ../servers/nosql/mongodb/7.0.nix {
mongodb-7_0 = callPackage ../servers/nosql/mongodb/7.0.nix {
sasl = cyrus_sasl;
boost = boost179.override { enableShared = false; };
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
stdenv = if stdenv.hostPlatform.isDarwin then
darwin.apple_sdk_11_0.stdenv.override (old: {
hostPlatform = old.hostPlatform // { darwinMinVersion = "10.14"; };
buildPlatform = old.buildPlatform // { darwinMinVersion = "10.14"; };
targetPlatform = old.targetPlatform // { darwinMinVersion = "10.14"; };
}) else
if stdenv.cc.isClang then llvmPackages.stdenv else stdenv;
};

influxdb = callPackage ../servers/nosql/influxdb { };
Expand Down

0 comments on commit 67dfca0

Please sign in to comment.