3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/sql/mysql5/default.nix
Eelco Dolstra acf5563f10 * Reduce the installed size of mysql from 80 MB to 17 MB by leaving
out some less important stuff, such as the statically linked
  embedded binaries and some test data.  This is important because
  mysql is currently a dependency of lots of other packages, such as
  Qt.  Of course, the real fix would be to split off the mysql client
  libraries into a separate package.

svn path=/nixpkgs/trunk/; revision=14878
2009-04-04 00:02:38 +00:00

28 lines
719 B
Nix

args: with args;
# Note: zlib is not required; MySQL can use an internal zlib.
stdenv.mkDerivation {
name = "mysql-5.0.77";
src = fetchurl {
url = http://downloads.mysql.com/archives/mysql-5.0/mysql-5.0.77.tar.gz;
sha256 = "1s0m991aynim8ny28cfwhjw0ly8j5d72xi00461w6yc2hlaijcd9";
};
buildInputs = [ps ncurses zlib perl openssl];
configureFlags = "--enable-thread-safe-client --disable-static --with-openssl=${openssl} --with-berkeley-db";
postInstall =
''
ln -s mysqld_safe $out/bin/mysqld
rm -rf $out/mysql-test $out/sql-bench $out/share/info
'';
meta = {
homepage = http://www.mysql.com/;
description = "The world's most popular open source database";
};
}