Skip to content

Commit 306eefa

Browse files
committedJan 6, 2018
mariadb.client: fix darwin build
Fixes #33517
1 parent b94c892 commit 306eefa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎pkgs/servers/sql/mariadb/default.nix

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ common = rec { # attributes common to both builds
2828
buildInputs = [
2929
ncurses openssl zlib pcre jemalloc
3030
] ++ stdenv.lib.optionals stdenv.isLinux [ libaio systemd ]
31-
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ];
31+
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ]
32+
# FIXME: move libiconv outside isDarwin on staging.
33+
++ optional stdenv.isDarwin libiconv;
3234

3335
prePatch = ''
3436
sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
@@ -122,8 +124,7 @@ everything = stdenv.mkDerivation (common // {
122124
buildInputs = common.buildInputs ++ [
123125
xz lzo lz4 bzip2 snappy
124126
libxml2 boost judy libevent cracklib
125-
] ++ optional (stdenv.isLinux && !stdenv.isArm) numactl
126-
++ optional stdenv.isDarwin libiconv;
127+
] ++ optional (stdenv.isLinux && !stdenv.isArm) numactl;
127128

128129
cmakeFlags = common.cmakeFlags ++ [
129130
"-DMYSQL_DATADIR=/var/lib/mysql"

0 commit comments

Comments
 (0)
Please sign in to comment.