rspamd: enable openblas support for neural networks

This commit is contained in:
Alexander V. Nikolaev 2018-11-08 18:01:46 +02:00
parent e77fa36824
commit 12a5b53ce2

View file

@ -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"