mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
mysql 5.1.41
svn path=/nixpkgs/trunk/; revision=19017
This commit is contained in:
parent
d1f8da3ae7
commit
d1e9045571
20
pkgs/servers/sql/mysql51/abi_check.patch
Normal file
20
pkgs/servers/sql/mysql51/abi_check.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff -rc mysql-5.1.40/Makefile.in mysql-5.1.40-new/Makefile.in
|
||||
*** mysql-5.1.40/Makefile.in 2009-10-06 19:57:22.000000000 +0200
|
||||
--- mysql-5.1.40-new/Makefile.in 2009-12-16 13:07:16.060108763 +0100
|
||||
***************
|
||||
*** 891,897 ****
|
||||
--srcdir=$(top_srcdir)
|
||||
storage/myisam/myisamchk --silent --fast $(distdir)/win/data/mysql/*.MYI
|
||||
|
||||
! all-local: @ABI_CHECK@
|
||||
|
||||
tags:
|
||||
support-files/build-tags
|
||||
--- 891,897 ----
|
||||
--srcdir=$(top_srcdir)
|
||||
storage/myisam/myisamchk --silent --fast $(distdir)/win/data/mysql/*.MYI
|
||||
|
||||
! all-local:
|
||||
|
||||
tags:
|
||||
support-files/build-tags
|
34
pkgs/servers/sql/mysql51/default.nix
Normal file
34
pkgs/servers/sql/mysql51/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{stdenv, fetchurl, ps, ncurses, zlib, perl, openssl}:
|
||||
|
||||
# Note: zlib is not required; MySQL can use an internal zlib.
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mysql-5.1.41";
|
||||
|
||||
src = fetchurl {
|
||||
url = ftp://mirror.leaseweb.com/mysql/Downloads/MySQL-5.1/mysql-5.1.41.tar.gz;
|
||||
sha256 = "05mwinpq35iaglylw5n772vv2p1kxyni6f2hv081gxm58gdj3dsw";
|
||||
};
|
||||
|
||||
buildInputs = [ps ncurses zlib perl openssl];
|
||||
|
||||
configureFlags = "--enable-thread-safe-client --with-ssl=${openssl} --with-embedded-server" +
|
||||
(if stdenv.system == "x86_64-linux" then " --with-lib-ccflags=-fPIC" else "");
|
||||
|
||||
NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
|
||||
NIX_CFLAGS_CXXFLAGS = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
||||
|
||||
patches = [./abi_check.patch];
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
@ -5040,6 +5040,11 @@ let
|
||||
ps = procps; /* !!! Linux only */
|
||||
};
|
||||
|
||||
mysql51 = import ../servers/sql/mysql51 {
|
||||
inherit fetchurl ncurses zlib perl openssl stdenv;
|
||||
ps = procps; /* !!! Linux only */
|
||||
};
|
||||
|
||||
mysql = mysql5;
|
||||
|
||||
mysql_jdbc = import ../servers/sql/mysql/jdbc {
|
||||
|
Loading…
Reference in New Issue
Block a user