diff options
author | Alexander V. Nikolaev <avn@avnik.info> | 2018-11-08 18:01:46 +0200 |
---|---|---|
committer | Alexander V. Nikolaev <avn@avnik.info> | 2018-12-03 00:13:14 +0200 |
commit | 12a5b53ce27851b9807b3eb7772f324229c7bc88 (patch) | |
tree | d6670654726257d463770f9329a9b2729de8919d /pkgs/servers/mail/rspamd | |
parent | e77fa3682470d1e4cd3e42db72749dbc5777ea21 (diff) |
rspamd: enable openblas support for neural networks
Diffstat (limited to 'pkgs/servers/mail/rspamd')
-rw-r--r-- | pkgs/servers/mail/rspamd/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/servers/mail/rspamd/default.nix b/pkgs/servers/mail/rspamd/default.nix index b101167a94d5..12777eb49f08 100644 --- a/pkgs/servers/mail/rspamd/default.nix +++ b/pkgs/servers/mail/rspamd/default.nix @@ -1,8 +1,9 @@ { stdenv, lib, fetchFromGitHub, cmake, perl , file, glib, libevent, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu -, libfann, gd, jemalloc +, libfann, gd, jemalloc, openblas , withFann ? true , withGd ? false +, withBlas ? true }: let libmagic = file; # libmagic provided by file package ATM @@ -22,7 +23,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig perl ]; buildInputs = [ glib libevent libmagic luajit openssl pcre sqlite ragel icu jemalloc ] ++ lib.optional withFann libfann - ++ lib.optional withGd gd; + ++ lib.optional withGd gd + ++ lib.optional withBlas openblas; cmakeFlags = [ "-DDEBIAN_BUILD=ON" |