rspamd: build with jemalloc
(by upstream author's suggestion)
This commit is contained in:
parent
1b59c4a6cc
commit
e77fa36824
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, cmake, perl
|
{ stdenv, lib, fetchFromGitHub, cmake, perl
|
||||||
, file, glib, libevent, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu
|
, file, glib, libevent, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu
|
||||||
, libfann, gd
|
, libfann, gd, jemalloc
|
||||||
, withFann ? true
|
, withFann ? true
|
||||||
, withGd ? false
|
, withGd ? false
|
||||||
}:
|
}:
|
||||||
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig perl ];
|
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 withFann libfann
|
||||||
++ lib.optional withGd gd;
|
++ lib.optional withGd gd;
|
||||||
|
|
||||||
@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
"-DDBDIR=/var/lib/rspamd"
|
"-DDBDIR=/var/lib/rspamd"
|
||||||
"-DLOGDIR=/var/log/rspamd"
|
"-DLOGDIR=/var/log/rspamd"
|
||||||
"-DLOCAL_CONFDIR=/etc/rspamd"
|
"-DLOCAL_CONFDIR=/etc/rspamd"
|
||||||
|
"-DENABLE_JEMALLOC=ON"
|
||||||
] ++ lib.optional withFann "-DENABLE_FANN=ON"
|
] ++ lib.optional withFann "-DENABLE_FANN=ON"
|
||||||
++ lib.optional withGd "-DENABLE_GD=ON";
|
++ lib.optional withGd "-DENABLE_GD=ON";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user