rspamd: build with jemalloc

(by upstream author's suggestion)
This commit is contained in:
Alexander V. Nikolaev 2018-11-06 16:50:04 +02:00
parent 1b59c4a6cc
commit e77fa36824

View file

@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, cmake, perl
, file, glib, libevent, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu
, libfann, gd
, libfann, gd, jemalloc
, withFann ? true
, withGd ? false
}:
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake pkgconfig perl ];
buildInputs = [ glib libevent libmagic luajit openssl pcre sqlite ragel icu ]
buildInputs = [ glib libevent libmagic luajit openssl pcre sqlite ragel icu jemalloc ]
++ lib.optional withFann libfann
++ lib.optional withGd gd;
@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
"-DDBDIR=/var/lib/rspamd"
"-DLOGDIR=/var/log/rspamd"
"-DLOCAL_CONFDIR=/etc/rspamd"
"-DENABLE_JEMALLOC=ON"
] ++ lib.optional withFann "-DENABLE_FANN=ON"
++ lib.optional withGd "-DENABLE_GD=ON";