Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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.

+7 -2
+7 -2
pkgs/development/libraries/armadillo/default.nix
··· 12 nativeBuildInputs = [ cmake ]; 13 buildInputs = [ openblasCompat superlu hdf5 ]; 14 15 - cmakeFlags = [ "-DDETECT_HDF5=ON" ]; 16 17 - patches = [ ./use-unix-config-on-OS-X.patch ]; 18 19 meta = with stdenv.lib; { 20 description = "C++ linear algebra library";
··· 12 nativeBuildInputs = [ cmake ]; 13 buildInputs = [ openblasCompat superlu hdf5 ]; 14 15 + cmakeFlags = let 16 + libSuff = if stdenv.isDarwin then "dylib" else "so"; 17 + in [ 18 + "-DLAPACK_LIBRARY=${openblasCompat}/lib/libopenblas.${libSuff}" 19 + "-DDETECT_HDF5=ON" 20 + ]; 21 22 + patches = [ ./use-unix-config-on-OS-X.patch ]; 23 24 meta = with stdenv.lib; { 25 description = "C++ linear algebra library";