superlu: fix darwin (#367110)

This commit is contained in:
Vladimír Čunát
2024-12-23 08:51:04 +01:00
+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;