@@ -32,8 +32,8 @@ common = rec { # attributes common to both builds
3232 nativeBuildInputs = [ cmake pkgconfig ];
3333
3434 buildInputs = [
35− ncurses openssl zlib pcre jemalloc
36− ] ++ stdenv.lib.optionals stdenv.isLinux [ libaio systemd ]
35+ ncurses openssl zlib pcre
36+ ] ++ stdenv.lib.optionals stdenv.isLinux [ jemalloc libaio systemd ]
3737 ++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ];
3838
3939 cmakeFlags = [
@@ -51,6 +51,7 @@ common = rec { # attributes common to both builds
5151 "-DWITH_PCRE=system"
5252 ]
5353 ++ optional stdenv.isDarwin "-DCURSES_LIBRARY=${ncurses.out}/lib/libncurses.dylib"
54+ ++ optional (!stdenv.isLinux) "-DWITH_JEMALLOC=no" # bad build at least on Darwin
5455 ;
5556
5657 preConfigure = ''