mysql55: 5.5.58 -> 5.5.60

mysql-test-run.pl.1 no longer exists.

Do not install and immediately delete mysql-test and sql-bench.
This commit is contained in:
Orivej Desh 2018-05-29 08:36:21 +00:00
parent 5ac2382487
commit 4b975f0fb9

View File

@ -6,11 +6,11 @@
let
self = stdenv.mkDerivation rec {
name = "mysql-${version}";
version = "5.5.58";
version = "5.5.60";
src = fetchurl {
url = "mirror://mysql/MySQL-5.5/${name}.tar.gz";
sha256 = "1f890376ld1qapl038sjh2ialdizys3sj96vfn4mqmb1ybx14scv";
sha256 = "071xaamqkbscybqzm79gf2w3bkr9lqlzwafis3gzc8w8fkhi4hd3";
};
patches = if stdenv.isCygwin then [
@ -47,6 +47,8 @@ self = stdenv.mkDerivation rec {
"-DINSTALL_MYSQLSHAREDIR=share/mysql"
"-DINSTALL_DOCDIR=share/mysql/docs"
"-DINSTALL_SHAREDIR=share/mysql"
"-DINSTALL_MYSQLTESTDIR="
"-DINSTALL_SQLBENCHDIR="
];
NIX_CFLAGS_COMPILE = [ "-fpermissive" ]; # since gcc-7
@ -57,8 +59,7 @@ self = stdenv.mkDerivation rec {
'';
postInstall = ''
sed -i -e "s|basedir=\"\"|basedir=\"$out\"|" $out/bin/mysql_install_db
rm -r $out/mysql-test $out/sql-bench $out/data "$out"/lib/*.a
rm $out/share/man/man1/mysql-test-run.pl.1
rm -r $out/data "$out"/lib/*.a
'';
passthru = {