Merge pull request #313778 from SuperSandro2000/rspamd-no-vendor
rspamd: use system libraries
This commit is contained in:
commit
a41e9c6e5d
|
@ -2,6 +2,8 @@
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
|
, doctest
|
||||||
|
, fmt
|
||||||
, perl
|
, perl
|
||||||
, glib
|
, glib
|
||||||
, luajit
|
, luajit
|
||||||
|
@ -17,6 +19,8 @@
|
||||||
, lapack
|
, lapack
|
||||||
, lua
|
, lua
|
||||||
, libsodium
|
, libsodium
|
||||||
|
, xxHash
|
||||||
|
, zstd
|
||||||
, withBlas ? true
|
, withBlas ? true
|
||||||
, withHyperscan ? stdenv.isx86_64
|
, withHyperscan ? stdenv.isx86_64
|
||||||
, withLuaJIT ? stdenv.isx86_64
|
, withLuaJIT ? stdenv.isx86_64
|
||||||
|
@ -39,7 +43,7 @@ stdenv.mkDerivation rec {
|
||||||
hardeningEnable = [ "pie" ];
|
hardeningEnable = [ "pie" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config perl ];
|
nativeBuildInputs = [ cmake pkg-config perl ];
|
||||||
buildInputs = [ glib openssl pcre sqlite ragel icu jemalloc libsodium ]
|
buildInputs = [ doctest fmt glib openssl pcre sqlite ragel icu jemalloc libsodium xxHash zstd ]
|
||||||
++ lib.optional withHyperscan hyperscan
|
++ lib.optional withHyperscan hyperscan
|
||||||
++ lib.optionals withBlas [ blas lapack ]
|
++ lib.optionals withBlas [ blas lapack ]
|
||||||
++ lib.optional withLuaJIT luajit ++ lib.optional (!withLuaJIT) lua;
|
++ lib.optional withLuaJIT luajit ++ lib.optional (!withLuaJIT) lua;
|
||||||
|
@ -53,6 +57,10 @@ stdenv.mkDerivation rec {
|
||||||
"-DLOGDIR=/var/log/rspamd"
|
"-DLOGDIR=/var/log/rspamd"
|
||||||
"-DLOCAL_CONFDIR=/etc/rspamd"
|
"-DLOCAL_CONFDIR=/etc/rspamd"
|
||||||
"-DENABLE_JEMALLOC=ON"
|
"-DENABLE_JEMALLOC=ON"
|
||||||
|
"-DSYSTEM_DOCTEST=ON"
|
||||||
|
"-DSYSTEM_FMT=ON"
|
||||||
|
"-DSYSTEM_XXHASH=ON"
|
||||||
|
"-DSYSTEM_ZSTD=ON"
|
||||||
] ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON"
|
] ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON"
|
||||||
++ lib.optional (!withLuaJIT) "-DENABLE_LUAJIT=OFF";
|
++ lib.optional (!withLuaJIT) "-DENABLE_LUAJIT=OFF";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user