Skip to content

Commit df10ec7

Browse files
authored
mysql-shell: add libutil on darwin; refactor to new SDK pattern (#354735)
2 parents b9c73c5 + 9ba75eb commit df10ec7

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

pkgs/development/tools/mysql-shell/8.nix

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
, fetchurl
66
, git
77
, cctools
8-
, DarwinTools
8+
, darwin
99
, makeWrapper
10-
, CoreServices
1110
, bison
1211
, openssl
1312
, protobuf
@@ -73,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
7372

7473
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ]
7574
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]
76-
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools DarwinTools ];
75+
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools darwin.DarwinTools ];
7776

7877
buildInputs = [
7978
curl
@@ -96,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
9695
antlr.runtime.cpp
9796
] ++ pythonDeps
9897
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
99-
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
98+
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];
10099

101100
preConfigure = ''
102101
# Build MySQL

pkgs/development/tools/mysql-shell/innovation.nix

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
, fetchurl
66
, git
77
, cctools
8-
, DarwinTools
8+
, darwin
99
, makeWrapper
10-
, CoreServices
1110
, bison
1211
, openssl
1312
, protobuf
@@ -73,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
7372

7473
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ]
7574
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]
76-
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools DarwinTools ];
75+
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools darwin.DarwinTools ];
7776

7877
buildInputs = [
7978
curl
@@ -96,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
9695
antlr.runtime.cpp
9796
] ++ pythonDeps
9897
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
99-
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
98+
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];
10099

101100
preConfigure = ''
102101
# Build MySQL

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,6 @@ with pkgs;
540540

541541
inherit ({
542542
mysql-shell_8 = callPackage ../development/tools/mysql-shell/8.nix {
543-
inherit (darwin) DarwinTools;
544-
inherit (darwin.apple_sdk.frameworks) CoreServices;
545543
antlr = antlr4_10;
546544
icu = icu73;
547545
protobuf = protobuf_24;
@@ -551,8 +549,6 @@ with pkgs;
551549
;
552550

553551
mysql-shell-innovation = callPackage ../development/tools/mysql-shell/innovation.nix {
554-
inherit (darwin) DarwinTools;
555-
inherit (darwin.apple_sdk.frameworks) CoreServices;
556552
antlr = antlr4_10;
557553
icu = icu73;
558554
protobuf = protobuf_24;

0 commit comments

Comments
 (0)