mysql-shell-innovation: add libutil on darwin; refactor to new SDK pattern

This commit is contained in:
Theodore Ni 2024-11-09 01:50:56 -08:00
parent 194e35dd63
commit 9ba75eb753
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 3 additions and 6 deletions

View File

@ -5,9 +5,8 @@
, fetchurl
, git
, cctools
, DarwinTools
, darwin
, makeWrapper
, CoreServices
, bison
, openssl
, protobuf
@ -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
@ -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

View File

@ -549,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;