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 { 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 , libfann, gd, jemalloc, openblas
, withFann ? true , withFann ? true
, withGd ? false , withGd ? false
, withBlas ? true
}: }:
let libmagic = file; # libmagic provided by file package ATM let libmagic = file; # libmagic provided by file package ATM
@ -22,7 +23,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig perl ]; nativeBuildInputs = [ cmake pkgconfig perl ];
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 withBlas openblas;
cmakeFlags = [ cmakeFlags = [
"-DDEBIAN_BUILD=ON" "-DDEBIAN_BUILD=ON"