superlu: fix darwin

The update from 5.2.1 -> 7.0.0 causes superlu segfaults running the
tests when linked with Accelerate due to superlu using the single
precision interface.  Set the Blas vendor to Generic to prevent cmake
from using Accelerate and use the nixpkgs provided blas/lapack
libraries.
This commit is contained in:
Reno Dakota
2024-12-21 06:19:46 -08:00
parent 36d6a1bccd
commit 6e276fd5e3
+10 -4
View File
@@ -45,10 +45,16 @@ stdenv.mkDerivation (finalAttrs: {
propagatedBuildInputs = [ blas ];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
(lib.cmakeBool "enable_fortran" true)
];
cmakeFlags =
[
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
(lib.cmakeBool "enable_fortran" true)
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# prevent cmake from using Accelerate, which causes tests to segfault
# https://github.com/xiaoyeli/superlu/issues/155
"-DBLA_VENDOR=Generic"
];
doCheck = true;