@@ -1,42 +0,0 @@
1−{ stdenv, fetchurl, ps, ncurses, zlib, perl, openssl }:
2−
3−# Note: zlib is not required; MySQL can use an internal zlib.
4−
5−stdenv.mkDerivation rec {
6− name = "mysql-5.1.73";
7−
8− src = fetchurl {
9− url = "mirror://mysql/MySQL-5.1/${name}.tar.gz";
10− sha256 = "1dfwi4ck0vq6sdci6gz0031s7zz5lc3pddqlgm0292s00l9y5sq5";
11− };
12−
13− buildInputs = [ ncurses zlib perl openssl ] ++ stdenv.lib.optional stdenv.isLinux ps;
14−
15− configureFlags = [
16− "--enable-thread-safe-client"
17− "--with-ssl=${openssl.dev}"
18− "--with-embedded-server"
19− "--with-plugins=max-no-ndb"
20− "--with-unix-socket-path=/run/mysqld/mysqld.sock"
21− ] ++ stdenv.lib.optional (stdenv.system == "x86_64-linux") " --with-lib-ccflags=-fPIC";
22−
23− NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
24− NIX_CFLAGS_CXXFLAGS = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
25− NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
26−
27− patches = [ ./abi_check.patch ];
28−
29− postInstall =
30− ''
31− ln -s mysqld_safe $out/bin/mysqld
32− rm -rf $out/mysql-test $out/sql-bench $out/share/info
33− '';
34−
35− passthru.mysqlVersion = "5.1";
36−
37− meta = {
38− homepage = http://www.mysql.com/;
39− description = "The world's most popular open source database";
40− platforms = stdenv.lib.platforms.all;
41− };
42−}