summary refs log tree commit diff
path: root/pkgs/development/libraries/fflas-ffpack
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-08-19 16:24:52 +0200
committerGitHub <noreply@github.com>2018-08-19 16:24:52 +0200
commit8014c7f186afb66ae746d6b1af9ce4510fb55eae (patch)
tree4967da1eb32f191534c84bdf04e5ef9e027ac6a2 /pkgs/development/libraries/fflas-ffpack
parent035906ce6601fe12254ead3349e8a95c7b5ac54e (diff)
parent8374400cecdc206f24bb4719914bb6294ee07021 (diff)
downloadnixpkgs-8014c7f186afb66ae746d6b1af9ce4510fb55eae.tar
nixpkgs-8014c7f186afb66ae746d6b1af9ce4510fb55eae.tar.gz
nixpkgs-8014c7f186afb66ae746d6b1af9ce4510fb55eae.tar.bz2
nixpkgs-8014c7f186afb66ae746d6b1af9ce4510fb55eae.tar.lz
nixpkgs-8014c7f186afb66ae746d6b1af9ce4510fb55eae.tar.xz
nixpkgs-8014c7f186afb66ae746d6b1af9ce4510fb55eae.tar.zst
nixpkgs-8014c7f186afb66ae746d6b1af9ce4510fb55eae.zip
Merge pull request #45013 from jbaum98/fflas-ffpack_darwin
fflas-ffpack: Add darwin support
Diffstat (limited to 'pkgs/development/libraries/fflas-ffpack')
-rw-r--r--pkgs/development/libraries/fflas-ffpack/default.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/development/libraries/fflas-ffpack/default.nix b/pkgs/development/libraries/fflas-ffpack/default.nix
index 5f99f35a159..bf7630608f7 100644
--- a/pkgs/development/libraries/fflas-ffpack/default.nix
+++ b/pkgs/development/libraries/fflas-ffpack/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, openblas
+{ stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, blas
 , gmpxx
 , optimize ? false # impure
 }:
@@ -6,23 +6,30 @@ stdenv.mkDerivation rec {
   name = "${pname}-${version}";
   pname = "fflas-ffpack";
   version = "2.3.2";
+
   src = fetchFromGitHub {
     owner = "linbox-team";
     repo = "${pname}";
     rev = "v${version}";
     sha256 = "1cqhassj2dny3gx0iywvmnpq8ca0d6m82xl5rz4mb8gaxr2kwddl";
   };
+
   checkInputs = [
     gmpxx
   ];
+
+  enableParallelBuilding = true;
+
   nativeBuildInputs = [
     autoreconfHook
     pkgconfig
   ] ++ stdenv.lib.optionals doCheck checkInputs;
-  buildInputs = [ givaro openblas];
+
+  buildInputs = [ givaro blas ];
+
   configureFlags = [
-    "--with-blas-libs=-lopenblas"
-    "--with-lapack-libs=-lopenblas"
+    "--with-blas-libs=-l${blas.linkName}"
+    "--with-lapack-libs=-l${blas.linkName}"
   ] ++ stdenv.lib.optionals (!optimize) [
     # disable SIMD instructions (which are enabled *when available* by default)
     "--disable-sse"
@@ -36,13 +43,15 @@ stdenv.mkDerivation rec {
     "--disable-fma"
     "--disable-fma4"
   ];
+
   doCheck = true;
+
   meta = {
     inherit version;
     description = ''Finite Field Linear Algebra Subroutines'';
     license = stdenv.lib.licenses.lgpl21Plus;
     maintainers = [stdenv.lib.maintainers.raskin];
-    platforms = stdenv.lib.platforms.linux;
+    platforms = stdenv.lib.platforms.unix;
     homepage = https://linbox-team.github.io/fflas-ffpack/;
   };
 }