From a11fda4b4b054c9468be6702349d730647852ee5 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 14 Jan 2012 11:58:29 +0000 Subject: [PATCH] mysql51: enable building on darwin svn path=/nixpkgs/trunk/; revision=31531 --- pkgs/servers/sql/mysql51/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/sql/mysql51/default.nix b/pkgs/servers/sql/mysql51/default.nix index ddf5c16bef1..71c9713e3bb 100644 --- a/pkgs/servers/sql/mysql51/default.nix +++ b/pkgs/servers/sql/mysql51/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation { sha256 = "07xbnwk7h1xya8s6dw34nrv7ampzag8l0l1szd2pc9zyqkzhydw4"; }; - buildInputs = [ps ncurses zlib perl openssl]; + buildInputs = [ncurses zlib perl openssl] ++ stdenv.lib.optional stdenv.isLinux ps; configureFlags = "--enable-thread-safe-client --with-ssl=${openssl} --with-embedded-server --with-plugins=max-no-ndb" + (if stdenv.system == "x86_64-linux" then " --with-lib-ccflags=-fPIC" else ""); @@ -30,5 +30,6 @@ stdenv.mkDerivation { meta = { homepage = http://www.mysql.com/; description = "The world's most popular open source database"; + platforms = stdenv.lib.platforms.all; }; }