mysql-shell: 8.0.30 -> 8.0.31
This commit is contained in:
parent
25eeb4785c
commit
2e02063e25
|
@ -4,6 +4,11 @@
|
||||||
, cmake
|
, cmake
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, git
|
, git
|
||||||
|
, cctools
|
||||||
|
, developer_cmds
|
||||||
|
, DarwinTools
|
||||||
|
, makeWrapper
|
||||||
|
, CoreServices
|
||||||
, bison
|
, bison
|
||||||
, openssl
|
, openssl
|
||||||
, protobuf
|
, protobuf
|
||||||
|
@ -26,30 +31,24 @@
|
||||||
, python3
|
, python3
|
||||||
, cyrus_sasl
|
, cyrus_sasl
|
||||||
, openldap
|
, openldap
|
||||||
, numactl
|
, antlr
|
||||||
, cctools
|
|
||||||
, CoreServices
|
|
||||||
, developer_cmds
|
|
||||||
, DarwinTools
|
|
||||||
, makeWrapper
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pythonDeps = with python3.pkgs; [ certifi paramiko pyyaml ];
|
pythonDeps = with python3.pkgs; [ certifi paramiko pyyaml ];
|
||||||
pythonPath = lib.makeSearchPath python3.sitePackages pythonDeps;
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation rec {
|
||||||
pname = "mysql-shell";
|
pname = "mysql-shell";
|
||||||
version = "8.0.30";
|
version = "8.0.31";
|
||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://cdn.mysql.com//Downloads/MySQL-Shell/mysql-shell-${version}-src.tar.gz";
|
url = "https://cdn.mysql.com//Downloads/MySQL-Shell/mysql-shell-${version}-src.tar.gz";
|
||||||
sha256 = "sha256-/UJgcYkPG8RShZzybqdcMQDpNUTVWAfAa2p0Cm23fXA=";
|
sha256 = "sha256-VA9dqvPmw2WXP3hAJS2xRTvxBM8D/IPsWYIaYwRZI/s=";
|
||||||
})
|
})
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://dev.mysql.com/get/Downloads/MySQL-${lib.versions.majorMinor version}/mysql-${version}.tar.gz";
|
url = "https://dev.mysql.com/get/Downloads/MySQL-${lib.versions.majorMinor version}/mysql-${version}.tar.gz";
|
||||||
sha256 = "sha256-yYjVxrqaVmkqbNbpgTRltfyTaO1LRh35cFmi/BYMi4Q=";
|
sha256 = "sha256-Z7uMunWyjpXH95SFY/AfuEUo/LsaNduoOdTORP4Bm6o=";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -62,7 +61,9 @@ stdenv.mkDerivation rec{
|
||||||
substituteInPlace cmake/libutils.cmake --replace /usr/bin/libtool libtool
|
substituteInPlace cmake/libutils.cmake --replace /usr/bin/libtool libtool
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ] ++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
|
nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ]
|
||||||
|
++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ cctools developer_cmds DarwinTools ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
boost
|
||||||
|
@ -84,13 +85,15 @@ stdenv.mkDerivation rec{
|
||||||
openldap
|
openldap
|
||||||
v8
|
v8
|
||||||
python3
|
python3
|
||||||
] ++ pythonDeps ++ lib.optionals stdenv.isLinux [
|
antlr.runtime.cpp
|
||||||
numactl
|
] ++ pythonDeps
|
||||||
libtirpc
|
++ lib.optionals stdenv.isLinux [ libtirpc ]
|
||||||
] ++ lib.optionals stdenv.isDarwin [ cctools CoreServices developer_cmds DarwinTools ];
|
++ lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# Build MySQL
|
# Build MySQL
|
||||||
|
echo "Building mysqlclient mysqlxclient"
|
||||||
|
|
||||||
cmake -DWITH_BOOST=system -DWITH_SYSTEM_LIBS=ON -DWITH_ROUTER=OFF -DWITH_UNIT_TESTS=OFF \
|
cmake -DWITH_BOOST=system -DWITH_SYSTEM_LIBS=ON -DWITH_ROUTER=OFF -DWITH_UNIT_TESTS=OFF \
|
||||||
-DFORCE_UNSUPPORTED_COMPILER=1 -S ../mysql-${version} -B ../mysql-${version}/build
|
-DFORCE_UNSUPPORTED_COMPILER=1 -S ../mysql-${version} -B ../mysql-${version}/build
|
||||||
|
|
||||||
|
@ -114,7 +117,7 @@ stdenv.mkDerivation rec{
|
||||||
CXXFLAGS = [ "-DV8_COMPRESS_POINTERS=1" "-DV8_31BIT_SMIS_ON_64BIT_ARCH=1" ];
|
CXXFLAGS = [ "-DV8_COMPRESS_POINTERS=1" "-DV8_31BIT_SMIS_ON_64BIT_ARCH=1" ];
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/bin/mysqlsh --set PYTHONPATH "${pythonPath}"
|
wrapProgram $out/bin/mysqlsh --set PYTHONPATH "${lib.makeSearchPath python3.sitePackages pythonDeps}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -784,6 +784,7 @@ with pkgs;
|
||||||
mysql-shell = callPackage ../development/tools/mysql-shell {
|
mysql-shell = callPackage ../development/tools/mysql-shell {
|
||||||
inherit (darwin) cctools developer_cmds DarwinTools;
|
inherit (darwin) cctools developer_cmds DarwinTools;
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
antlr = antlr4_10;
|
||||||
boost = boost177; # Configure checks for specific version.
|
boost = boost177; # Configure checks for specific version.
|
||||||
protobuf = protobuf3_19;
|
protobuf = protobuf3_19;
|
||||||
icu = icu69;
|
icu = icu69;
|
||||||
|
|
Loading…
Reference in a new issue