Merge pull request #207 from washort/mysql55

And sorry to @washort for bugging him too much with the syntax.
This commit is contained in:
aszlig 2012-12-07 18:48:26 +01:00
commit a9edaf10ed
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -15,7 +15,9 @@ stdenv.mkDerivation rec {
sha256 = "13y7bhjmx4daidvyqjz88yffbswb6rc1khkmiqm896fx3lglkcpr";
};
buildInputs = [ cmake bison ncurses openssl readline zlib ];
buildInputs = [ cmake bison ncurses openssl readline zlib ]
++ stdenv.lib.optional stdenv.isDarwin perl;
enableParallelBuilding = true;
@ -23,6 +25,9 @@ stdenv.mkDerivation rec {
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
prePatch = ''
sed -i -e "s|/usr/bin/libtool|libtool|" cmake/libutils.cmake
'';
postInstall = ''
sed -i -e "s|basedir=\"\"|basedir=\"$out\"|" $out/bin/mysql_install_db
rm -rf $out/mysql-test $out/sql-bench