Merge staging into closure-size
The most complex problems were from dealing with switches reverted in the meantime (gcc5, gmp6, ncurses6). It's likely that darwin is (still) broken nontrivially.
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
{ stdenv, fetchurl, cmake, ncurses, zlib, openssl, pcre, boost, judy, bison, libxml2
|
||||
, libaio, libevent, groff, jemalloc, perl, fixDarwinDylibNames
|
||||
{ stdenv, fetchurl, cmake, ncurses, zlib, xz, lzo, lz4, bzip2, snappy
|
||||
, openssl, pcre, boost, judy, bison, libxml2
|
||||
, libaio, libevent, groff, jemalloc, cracklib, systemd, numactl, perl
|
||||
, fixDarwinDylibNames, cctools
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mariadb-${version}";
|
||||
version = "10.0.21";
|
||||
version = "10.1.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.mariadb.org/interstitial/mariadb-${version}/source/mariadb-${version}.tar.gz";
|
||||
sha256 = "0i9mzbn35f4lj4y1lqzgbavh5xyx18zfn0ks0nqzvppabkhk56jb";
|
||||
sha256 = "1yiv0161rkgll1yd9r1cb1wdx55rwynj8i623p6wjvda9536mgvw";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake ncurses openssl zlib pcre libxml2 boost judy bison libevent ]
|
||||
++ stdenv.lib.optionals stdenv.isLinux [ jemalloc libaio ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames ];
|
||||
buildInputs = [
|
||||
cmake ncurses openssl zlib xz lzo lz4 bzip2
|
||||
# temporary due to https://mariadb.atlassian.net/browse/MDEV-9000
|
||||
(if stdenv.is64bit then snappy else null)
|
||||
pcre libxml2 boost judy bison libevent cracklib
|
||||
] ++ stdenv.lib.optionals stdenv.isLinux [ jemalloc libaio systemd numactl ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools ];
|
||||
|
||||
patches = stdenv.lib.optional stdenv.isDarwin ./my_context_asm.patch;
|
||||
|
||||
@@ -49,13 +55,16 @@ stdenv.mkDerivation rec {
|
||||
"-DWITH_PARTITION_STORAGE_ENGINE=1"
|
||||
"-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1"
|
||||
"-DWITHOUT_FEDERATED_STORAGE_ENGINE=1"
|
||||
"-DSECURITY_HARDENED=ON"
|
||||
"-DWITH_WSREP=ON"
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
"-DWITHOUT_OQGRAPH_STORAGE_ENGINE=1"
|
||||
"-DWITHOUT_TOKUDB=1"
|
||||
"-DCURSES_LIBRARY=${ncurses}/lib/libncurses.dylib"
|
||||
];
|
||||
|
||||
# fails to find lex_token.h sometimes
|
||||
enableParallelBuilding = false;
|
||||
enableParallelBuilding = true;
|
||||
|
||||
outputs = [ "out" "lib" ];
|
||||
setOutputFlags = false;
|
||||
@@ -94,6 +103,15 @@ stdenv.mkDerivation rec {
|
||||
mv $out/lib $lib
|
||||
mv $out/include $lib
|
||||
|
||||
''
|
||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
# Fix library rpaths
|
||||
# TODO: put this in the stdenv to prepare for wide usage of multi-output derivations
|
||||
for file in $(grep -rl $out/lib $lib); do
|
||||
install_name_tool -delete_rpath $out/lib -add_rpath $lib $file
|
||||
done
|
||||
|
||||
'' + ''
|
||||
# Fix the mysql_config
|
||||
sed -i $out/bin/mysql_config \
|
||||
-e 's,-lz,-L${zlib.out}/lib -lz,g' \
|
||||
|
||||
@@ -54,7 +54,7 @@ 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
|
||||
rm -r $out/mysql-test $out/sql-bench $out/data "$out"/lib/*.a
|
||||
rm $out/share/man/man1/mysql-test-run.pl.1
|
||||
'';
|
||||
|
||||
|
||||
@@ -67,33 +67,33 @@ let
|
||||
in {
|
||||
|
||||
postgresql90 = common {
|
||||
version = "9.0.22";
|
||||
version = "9.0.23";
|
||||
psqlSchema = "9.0";
|
||||
sha256 = "19gq6axjhvlr5zlrzwnll1fbrvai4xh0nb1jki6gmmschl6v5m4l";
|
||||
sha256 = "1pnpni95r0ry112z6ycrqk5m6iw0vd4npg789czrl4qlr0cvxg1x";
|
||||
};
|
||||
|
||||
postgresql91 = common {
|
||||
version = "9.1.18";
|
||||
version = "9.1.19";
|
||||
psqlSchema = "9.1";
|
||||
sha256 = "1a44hmcvfaa8j169ladsibmvjakw6maaxqkzz1ab8139cqkda9i7";
|
||||
sha256 = "1ihf9h353agsm5p2dr717dvraxvsw6j7chbn3qxdcz8la5s0bmfb";
|
||||
};
|
||||
|
||||
postgresql92 = common {
|
||||
version = "9.2.13";
|
||||
version = "9.2.14";
|
||||
psqlSchema = "9.2";
|
||||
sha256 = "0i3avdr8mnvn6ldkx0hc4jmclhisb2338hzs0j2m03wck8hddjsx";
|
||||
sha256 = "0bi9zfsfhj84mnaa41ar63j9qgzsnac1wwgjhy2c6j0a68zhphjl";
|
||||
};
|
||||
|
||||
postgresql93 = common {
|
||||
version = "9.3.9";
|
||||
version = "9.3.10";
|
||||
psqlSchema = "9.3";
|
||||
sha256 = "0j85j69rf54cwz5yhrhk4ca22b82990j5sqb8cr1fl9843nd0fzp";
|
||||
sha256 = "0c8mailildnqnndwpmnqf8ymxmk1qf5w5dq02hjqmydgfq7lyi75";
|
||||
};
|
||||
|
||||
postgresql94 = common {
|
||||
version = "9.4.4";
|
||||
version = "9.4.5";
|
||||
psqlSchema = "9.4";
|
||||
sha256 = "04q07g209y99xzjh88y52qpvz225rxwifv8nzp3bxzfni2bdk3jk";
|
||||
sha256 = "0faav7k3nlhh1z7j1r3adrhx1fpsji3jixmm2abjm93fdg350z5q";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user