mysql-shell: add libutil on darwin; refactor to new SDK pattern (#354735)
This commit is contained in:
commit
df10ec72ac
@ -5,9 +5,8 @@
|
|||||||
, fetchurl
|
, fetchurl
|
||||||
, git
|
, git
|
||||||
, cctools
|
, cctools
|
||||||
, DarwinTools
|
, darwin
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, CoreServices
|
|
||||||
, bison
|
, bison
|
||||||
, openssl
|
, openssl
|
||||||
, protobuf
|
, protobuf
|
||||||
@ -73,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ]
|
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ]
|
||||||
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]
|
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools DarwinTools ];
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools darwin.DarwinTools ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
curl
|
curl
|
||||||
@ -96,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
antlr.runtime.cpp
|
antlr.runtime.cpp
|
||||||
] ++ pythonDeps
|
] ++ pythonDeps
|
||||||
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
|
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# Build MySQL
|
# Build MySQL
|
||||||
|
@ -5,9 +5,8 @@
|
|||||||
, fetchurl
|
, fetchurl
|
||||||
, git
|
, git
|
||||||
, cctools
|
, cctools
|
||||||
, DarwinTools
|
, darwin
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, CoreServices
|
|
||||||
, bison
|
, bison
|
||||||
, openssl
|
, openssl
|
||||||
, protobuf
|
, protobuf
|
||||||
@ -73,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ]
|
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ]
|
||||||
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]
|
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools DarwinTools ];
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools darwin.DarwinTools ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
curl
|
curl
|
||||||
@ -96,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
antlr.runtime.cpp
|
antlr.runtime.cpp
|
||||||
] ++ pythonDeps
|
] ++ pythonDeps
|
||||||
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
|
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# Build MySQL
|
# Build MySQL
|
||||||
|
@ -540,8 +540,6 @@ with pkgs;
|
|||||||
|
|
||||||
inherit ({
|
inherit ({
|
||||||
mysql-shell_8 = callPackage ../development/tools/mysql-shell/8.nix {
|
mysql-shell_8 = callPackage ../development/tools/mysql-shell/8.nix {
|
||||||
inherit (darwin) DarwinTools;
|
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
|
||||||
antlr = antlr4_10;
|
antlr = antlr4_10;
|
||||||
icu = icu73;
|
icu = icu73;
|
||||||
protobuf = protobuf_24;
|
protobuf = protobuf_24;
|
||||||
@ -551,8 +549,6 @@ with pkgs;
|
|||||||
;
|
;
|
||||||
|
|
||||||
mysql-shell-innovation = callPackage ../development/tools/mysql-shell/innovation.nix {
|
mysql-shell-innovation = callPackage ../development/tools/mysql-shell/innovation.nix {
|
||||||
inherit (darwin) DarwinTools;
|
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
|
||||||
antlr = antlr4_10;
|
antlr = antlr4_10;
|
||||||
icu = icu73;
|
icu = icu73;
|
||||||
protobuf = protobuf_24;
|
protobuf = protobuf_24;
|
||||||
|
Loading…
Reference in New Issue
Block a user