mariadb on Darwin: another attempt to fix
Adding jemalloc to buildInputs didn't work out a97df891, as jemalloc doesn't build correctly on Darwin ATM.
This commit is contained in:
parent
eafdae9fd5
commit
1c9307d348
@ -32,8 +32,8 @@ common = rec { # attributes common to both builds
|
|||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ncurses openssl zlib pcre jemalloc
|
ncurses openssl zlib pcre
|
||||||
] ++ stdenv.lib.optionals stdenv.isLinux [ libaio systemd ]
|
] ++ stdenv.lib.optionals stdenv.isLinux [ jemalloc libaio systemd ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
@ -51,6 +51,7 @@ common = rec { # attributes common to both builds
|
|||||||
"-DWITH_PCRE=system"
|
"-DWITH_PCRE=system"
|
||||||
]
|
]
|
||||||
++ optional stdenv.isDarwin "-DCURSES_LIBRARY=${ncurses.out}/lib/libncurses.dylib"
|
++ optional stdenv.isDarwin "-DCURSES_LIBRARY=${ncurses.out}/lib/libncurses.dylib"
|
||||||
|
++ optional (!stdenv.isLinux) "-DWITH_JEMALLOC=no" # bad build at least on Darwin
|
||||||
;
|
;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user