Skip to content

Commit

Permalink
mysql-shell: add libutil on darwin; refactor to new SDK pattern (NixO…
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Nov 10, 2024
2 parents b9c73c5 + 9ba75eb commit df10ec7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
7 changes: 3 additions & 4 deletions pkgs/development/tools/mysql-shell/8.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
, fetchurl
, git
, cctools
, DarwinTools
, darwin
, makeWrapper
, CoreServices
, bison
, openssl
, protobuf
Expand Down Expand Up @@ -73,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {

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

buildInputs = [
curl
Expand All @@ -96,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
antlr.runtime.cpp
] ++ pythonDeps
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];

preConfigure = ''
# Build MySQL
Expand Down
7 changes: 3 additions & 4 deletions pkgs/development/tools/mysql-shell/innovation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
, fetchurl
, git
, cctools
, DarwinTools
, darwin
, makeWrapper
, CoreServices
, bison
, openssl
, protobuf
Expand Down Expand Up @@ -73,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {

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

buildInputs = [
curl
Expand All @@ -96,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
antlr.runtime.cpp
] ++ pythonDeps
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];

preConfigure = ''
# Build MySQL
Expand Down
4 changes: 0 additions & 4 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,6 @@ with pkgs;

inherit ({
mysql-shell_8 = callPackage ../development/tools/mysql-shell/8.nix {
inherit (darwin) DarwinTools;
inherit (darwin.apple_sdk.frameworks) CoreServices;
antlr = antlr4_10;
icu = icu73;
protobuf = protobuf_24;
Expand All @@ -551,8 +549,6 @@ with pkgs;
;

mysql-shell-innovation = callPackage ../development/tools/mysql-shell/innovation.nix {
inherit (darwin) DarwinTools;
inherit (darwin.apple_sdk.frameworks) CoreServices;
antlr = antlr4_10;
icu = icu73;
protobuf = protobuf_24;
Expand Down

0 comments on commit df10ec7

Please sign in to comment.