mysql55: Allow to build on darwin

This commit is contained in:
Johannes Bornhold 2016-03-18 14:23:14 +01:00
parent 27e23486bb
commit 67b1acd989
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, cmake, bison, ncurses, openssl, readline, zlib, perl }:
{ stdenv, fetchurl, cmake, bison, ncurses, openssl, readline, zlib, perl
, cctools, CoreServices }:
# Note: zlib is not required; MySQL can use an internal zlib.
@ -22,7 +23,7 @@ stdenv.mkDerivation rec {
'';
buildInputs = [ cmake bison ncurses openssl readline zlib ]
++ stdenv.lib.optional stdenv.isDarwin perl;
++ stdenv.lib.optionals stdenv.isDarwin [ perl cctools CoreServices ];
enableParallelBuilding = true;

View File

@ -9812,7 +9812,10 @@ let
ps = procps; /* !!! Linux only */
};
mysql55 = callPackage ../servers/sql/mysql/5.5.x.nix { };
mysql55 = callPackage ../servers/sql/mysql/5.5.x.nix {
inherit (darwin) cctools;
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
mysql = mariadb;
libmysql = mysql.lib;