From c7a88d13a9f3645638d5bee27e376f090a475de1 Mon Sep 17 00:00:00 2001 From: Reno Dakota <170618376+paparodeo@users.noreply.github.com> Date: Sat, 26 Oct 2024 04:13:02 +0000 Subject: [PATCH] qrupdate: fix darwin with the sdk refactor cmake will use Accelerate for the blas/lapack libs. Unfortunately, this breaks qrupdate and causes all test to fail, most of them by segfaulting. Set the Blas vendor to Generic to prevent cmake from using Accelerate and use the nixpkgs provided blas/lapack libraries --- pkgs/development/libraries/qrupdate/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/qrupdate/default.nix b/pkgs/development/libraries/qrupdate/default.nix index a3ccff5c1093..27c569ccad39 100644 --- a/pkgs/development/libraries/qrupdate/default.nix +++ b/pkgs/development/libraries/qrupdate/default.nix @@ -28,6 +28,9 @@ stdenv.mkDerivation (finalAttrs: { # https://savannah.gnu.org/bugs/?50339 "-fdefault-integer-8" ])}" + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # prevent cmake from using Accelerate, which causes all tests to segfault + "-DBLA_VENDOR=Generic" ]; # https://github.com/mpimd-csc/qrupdate-ng/issues/4