rspamd: enable hyperscan
This commit is contained in:
parent
3e1acb0b44
commit
b73b02255e
@ -1,11 +1,14 @@
|
|||||||
{ 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, jemalloc, openblas
|
, hyperscan, libfann, gd, jemalloc, openblas
|
||||||
, withFann ? true
|
, withFann ? true
|
||||||
, withGd ? false
|
, withGd ? false
|
||||||
, withBlas ? true
|
, withBlas ? true
|
||||||
|
, withHyperscan ? stdenv.isx86_64
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert withHyperscan -> stdenv.isx86_64;
|
||||||
|
|
||||||
let libmagic = file; # libmagic provided by file package ATM
|
let libmagic = file; # libmagic provided by file package ATM
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -24,6 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ glib libevent libmagic luajit openssl pcre sqlite ragel icu jemalloc ]
|
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
|
||||||
|
++ lib.optional withHyperscan hyperscan
|
||||||
++ lib.optional withBlas openblas;
|
++ lib.optional withBlas openblas;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
@ -34,6 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
"-DLOCAL_CONFDIR=/etc/rspamd"
|
"-DLOCAL_CONFDIR=/etc/rspamd"
|
||||||
"-DENABLE_JEMALLOC=ON"
|
"-DENABLE_JEMALLOC=ON"
|
||||||
] ++ lib.optional withFann "-DENABLE_FANN=ON"
|
] ++ lib.optional withFann "-DENABLE_FANN=ON"
|
||||||
|
++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON"
|
||||||
++ lib.optional withGd "-DENABLE_GD=ON";
|
++ lib.optional withGd "-DENABLE_GD=ON";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user