2008-02-21 00:02:41 +01:00
|
|
|
args: with args;
|
2007-10-30 17:03:29 +01:00
|
|
|
|
|
|
|
# Note: zlib is not required; MySQL can use an internal zlib.
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-03-07 15:11:45 +01:00
|
|
|
name = "mysql-5.0.77";
|
2007-10-30 17:03:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-03-07 15:11:45 +01:00
|
|
|
url = http://downloads.mysql.com/archives/mysql-5.0/mysql-5.0.77.tar.gz;
|
|
|
|
sha256 = "1s0m991aynim8ny28cfwhjw0ly8j5d72xi00461w6yc2hlaijcd9";
|
2007-10-30 17:03:29 +01:00
|
|
|
};
|
|
|
|
|
2008-02-21 00:02:41 +01:00
|
|
|
buildInputs = [ps ncurses zlib perl openssl];
|
|
|
|
postInstall = "ln -s mysqld_safe $out/bin/mysqld";
|
2007-10-30 17:03:29 +01:00
|
|
|
|
2008-02-21 00:02:41 +01:00
|
|
|
configureFlags = "--enable-thread-safe-client --with-embedded-server --disable-static --with-openssl=${openssl} --with-berkeley-db";
|
2007-10-30 17:03:29 +01:00
|
|
|
}
|