diff options
author | Alexander V. Nikolaev <avn@avnik.info> | 2018-11-08 04:04:08 +0200 |
---|---|---|
committer | Alexander V. Nikolaev <avn@avnik.info> | 2018-12-03 00:13:35 +0200 |
commit | b73b02255edde30d9c4f21c2afd05c27ad266074 (patch) | |
tree | 2ca268842a0d6e758e33c67af1560579f3d65aee /pkgs/servers/mail/rspamd | |
parent | 3e1acb0b44fbad845d27cdce987474f5eb4be912 (diff) |
rspamd: enable hyperscan
Diffstat (limited to 'pkgs/servers/mail/rspamd')
-rw-r--r-- | pkgs/servers/mail/rspamd/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/servers/mail/rspamd/default.nix b/pkgs/servers/mail/rspamd/default.nix index 12777eb49f08..ae1dc4312630 100644 --- a/pkgs/servers/mail/rspamd/default.nix +++ b/pkgs/servers/mail/rspamd/default.nix @@ -1,11 +1,14 @@ { stdenv, lib, fetchFromGitHub, cmake, perl , file, glib, libevent, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu -, libfann, gd, jemalloc, openblas +, hyperscan, libfann, gd, jemalloc, openblas , withFann ? true , withGd ? false , withBlas ? true +, withHyperscan ? stdenv.isx86_64 }: +assert withHyperscan -> stdenv.isx86_64; + let libmagic = file; # libmagic provided by file package ATM in @@ -24,6 +27,7 @@ stdenv.mkDerivation rec { buildInputs = [ glib libevent libmagic luajit openssl pcre sqlite ragel icu jemalloc ] ++ lib.optional withFann libfann ++ lib.optional withGd gd + ++ lib.optional withHyperscan hyperscan ++ lib.optional withBlas openblas; cmakeFlags = [ @@ -34,6 +38,7 @@ stdenv.mkDerivation rec { "-DLOCAL_CONFDIR=/etc/rspamd" "-DENABLE_JEMALLOC=ON" ] ++ lib.optional withFann "-DENABLE_FANN=ON" + ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON" ++ lib.optional withGd "-DENABLE_GD=ON"; meta = with stdenv.lib; { |