Skip to content

Commit

Permalink
superlu: fix darwin (#367110)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Dec 23, 2024
2 parents 7929c2e + 6e276fd commit 798b917
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkgs/by-name/su/superlu/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 798b917

Please sign in to comment.