diff --git a/pkgs/by-name/su/superlu/package.nix b/pkgs/by-name/su/superlu/package.nix index c0877e7150b4..4487dedf7e08 100644 --- a/pkgs/by-name/su/superlu/package.nix +++ b/pkgs/by-name/su/superlu/package.nix @@ -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;