mysql55: Get building on darwin

svn path=/nixpkgs/trunk/; revision=31842
This commit is contained in:
Shea Levy 2012-01-26 02:08:48 +00:00
parent e45f42bdf1
commit 7cc21234f6

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, cmake, bison, ncurses, openssl, readline, zlib}:
{stdenv, fetchurl, cmake, bison, ncurses, openssl, readline, zlib, darwinInstallNameToolUtility, perl}:
# Note: zlib is not required; MySQL can use an internal zlib.
@ -10,7 +10,7 @@ stdenv.mkDerivation {
sha256 = "03jl60mzrsd1jb8fvkz6c8j2239b37k8n1i07jk1q4yk58aq8ynh";
};
buildInputs = [ cmake bison ncurses openssl readline zlib ];
buildInputs = [ cmake bison ncurses openssl readline zlib ] ++ stdenv.lib.optionals stdenv.isDarwin [ darwinInstallNameToolUtility perl ];
cmakeFlags = "-DWITH_SSL=yes -DWITH_READLINE=yes -DWITH_EMBEDDED_SERVER=yes -DWITH_ZLIB=yes -DINSTALL_SCRIPTDIR=bin";