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 12 nativeBuildInputs = [ cmake ]; 13 13 buildInputs = [ openblasCompat superlu hdf5 ]; 14 14 15 - cmakeFlags = [ "-DDETECT_HDF5=ON" ]; 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 + ]; 16 21 17 - patches = [ ./use-unix-config-on-OS-X.patch ]; 22 + patches = [ ./use-unix-config-on-OS-X.patch ]; 18 23 19 24 meta = with stdenv.lib; { 20 25 description = "C++ linear algebra library";