about summary refs log tree commit diff
path: root/pkgs/servers/mail/rspamd/default.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-03-31 10:47:18 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2020-04-17 16:24:09 -0500
commit1c8aba83340be3713f68410d1d273a8b15e7e007 (patch)
treefdc752744f384be57b6ff3c65495018432bff0ab /pkgs/servers/mail/rspamd/default.nix
parent43873351ffed36b52170571839e26b57c9f15920 (diff)
downloadnixlib-1c8aba83340be3713f68410d1d273a8b15e7e007.tar
nixlib-1c8aba83340be3713f68410d1d273a8b15e7e007.tar.gz
nixlib-1c8aba83340be3713f68410d1d273a8b15e7e007.tar.bz2
nixlib-1c8aba83340be3713f68410d1d273a8b15e7e007.tar.lz
nixlib-1c8aba83340be3713f68410d1d273a8b15e7e007.tar.xz
nixlib-1c8aba83340be3713f68410d1d273a8b15e7e007.tar.zst
nixlib-1c8aba83340be3713f68410d1d273a8b15e7e007.zip
treewide: use blas and lapack
This makes packages use lapack and blas, which can wrap different
BLAS/LAPACK implementations.

treewide: cleanup from blas/lapack changes

A few issues in the original treewide:

- can’t assume blas64 is a bool
- unused commented code
Diffstat (limited to 'pkgs/servers/mail/rspamd/default.nix')
-rw-r--r--pkgs/servers/mail/rspamd/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/servers/mail/rspamd/default.nix b/pkgs/servers/mail/rspamd/default.nix
index 7b9e766f246c..7f54b97a8e82 100644
--- a/pkgs/servers/mail/rspamd/default.nix
+++ b/pkgs/servers/mail/rspamd/default.nix
@@ -1,6 +1,6 @@
 { stdenv, lib, fetchFromGitHub, cmake, perl
 , glib, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu
-, hyperscan, jemalloc, openblas, lua, libsodium
+, hyperscan, jemalloc, blas, lapack, lua, libsodium
 , withBlas ? true
 , withHyperscan ? stdenv.isx86_64
 , withLuaJIT ? stdenv.isx86_64
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ cmake pkgconfig perl ];
   buildInputs = [ glib openssl pcre sqlite ragel icu jemalloc libsodium ]
     ++ lib.optional withHyperscan hyperscan
-    ++ lib.optional withBlas openblas
+    ++ lib.optionals withBlas [ blas lapack ]
     ++ lib.optional withLuaJIT luajit ++ lib.optional (!withLuaJIT) lua;
 
   cmakeFlags = [