diff options
author | Josef Kemetmueller <josef.kemetmueller@gmail.com> | 2017-07-20 22:29:30 +0200 |
---|---|---|
committer | Josef Kemetmueller <josef.kemetmueller@gmail.com> | 2017-07-20 22:29:30 +0200 |
commit | 6f72708c126dbdad4edc0dec2d4e77bc20e743d3 (patch) | |
tree | 422c02a54f5c7c2f971864a7661d76b437bd5a40 /pkgs | |
parent | dc7cc77111a49f332c3f4c430685890a1f004c9b (diff) | |
download | nixlib-6f72708c126dbdad4edc0dec2d4e77bc20e743d3.tar nixlib-6f72708c126dbdad4edc0dec2d4e77bc20e743d3.tar.gz nixlib-6f72708c126dbdad4edc0dec2d4e77bc20e743d3.tar.bz2 nixlib-6f72708c126dbdad4edc0dec2d4e77bc20e743d3.tar.lz nixlib-6f72708c126dbdad4edc0dec2d4e77bc20e743d3.tar.xz nixlib-6f72708c126dbdad4edc0dec2d4e77bc20e743d3.tar.zst nixlib-6f72708c126dbdad4edc0dec2d4e77bc20e743d3.zip |
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')
-rw-r--r-- | pkgs/development/libraries/armadillo/default.nix | 9 |
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"; |