aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/armadillo
diff options
context:
space:
mode:
authorJosef Kemetmueller <josef.kemetmueller@gmail.com>2017-07-20 22:29:30 +0200
committerJosef Kemetmueller <josef.kemetmueller@gmail.com>2017-07-20 22:29:30 +0200
commit6f72708c126dbdad4edc0dec2d4e77bc20e743d3 (patch)
tree422c02a54f5c7c2f971864a7661d76b437bd5a40 /pkgs/development/libraries/armadillo
parentdc7cc77111a49f332c3f4c430685890a1f004c9b (diff)
armadillo: Make use of openBLAS's built-in LAPACK
Even though the linked openBLAS contains LAPACK, the functionality was not usable due to armadillo needing to link against it explicitly.
Diffstat (limited to 'pkgs/development/libraries/armadillo')
-rw-r--r--pkgs/development/libraries/armadillo/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/libraries/armadillo/default.nix b/pkgs/development/libraries/armadillo/default.nix
index d5a601f09ba0..514c73f5e0fc 100644
--- a/pkgs/development/libraries/armadillo/default.nix
+++ b/pkgs/development/libraries/armadillo/default.nix
@@ -12,9 +12,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ openblasCompat superlu hdf5 ];
- cmakeFlags = [ "-DDETECT_HDF5=ON" ];
+ cmakeFlags = let
+ libSuff = if stdenv.isDarwin then "dylib" else "so";
+ in [
+ "-DLAPACK_LIBRARY=${openblasCompat}/lib/libopenblas.${libSuff}"
+ "-DDETECT_HDF5=ON"
+ ];
- patches = [ ./use-unix-config-on-OS-X.patch ];
+ patches = [ ./use-unix-config-on-OS-X.patch ];
meta = with stdenv.lib; {
description = "C++ linear algebra library";