mysql80: 8.0.17 -> 8.0.21

Hopefully substituteInPlace will be less brittle than the patch.
This commit is contained in:
Alyssa Ross 2020-07-17 16:45:39 +00:00 committed by Tim Otten
parent a315a1503a
commit 4d5d04a238
3 changed files with 9 additions and 10 deletions

View file

@ -1,27 +1,31 @@
{ lib, stdenv, fetchurl, bison, cmake, pkgconfig
, boost, icu, libedit, libevent, lz4, ncurses, openssl, protobuf, re2, readline, zlib
, boost, icu, libedit, libevent, lz4, ncurses, openssl, protobuf, re2, readline, zlib, zstd
, numactl, perl, cctools, CoreServices, developer_cmds, libtirpc, rpcsvc-proto
}:
let
self = stdenv.mkDerivation rec {
pname = "mysql";
version = "8.0.17";
version = "8.0.21";
src = fetchurl {
url = "https://dev.mysql.com/get/Downloads/MySQL-${self.mysqlVersion}/${pname}-${version}.tar.gz";
sha256 = "1mjrlxn8vigi69r0r674j2dibdnkaar01ji5965gsyx7k60z7qy6";
sha256 = "0d00k55rkzdgn5wj32vxankjk5x3ywfqw62zxzg3m503xrg56mmd";
};
patches = [
./abi-check.patch
./libutils.patch
];
nativeBuildInputs = [ bison cmake pkgconfig rpcsvc-proto ];
postPatch = ''
substituteInPlace cmake/libutils.cmake --replace /usr/bin/ ""
'';
buildInputs = [
boost icu libedit libevent lz4 ncurses openssl protobuf re2 readline zlib
zstd
] ++ lib.optionals stdenv.isLinux [
numactl libtirpc
] ++ lib.optionals stdenv.isDarwin [

View file

@ -1,5 +0,0 @@
--- a/cmake/libutils.cmake
+++ b/cmake/libutils.cmake
@@ -345 +345 @@ MACRO(MERGE_CONVENIENCE_LIBRARIES)
- COMMAND /usr/bin/libtool -static -o $<TARGET_FILE:${TARGET}>
+ COMMAND libtool -static -o $<TARGET_FILE:${TARGET}>

View file

@ -17805,7 +17805,7 @@ in
mysql80 = callPackage ../servers/sql/mysql/8.0.x.nix {
inherit (darwin) cctools developer_cmds;
inherit (darwin.apple_sdk.frameworks) CoreServices;
boost = boost169; # Configure checks for specific version.
boost = boost172; # Configure checks for specific version.
protobuf = protobuf3_7;
};