From ba9416dfe8e7a345ca398b344b31c0b877fd9c77 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 16 Feb 2025 17:05:05 +0100 Subject: [PATCH] magma: mark dynamic build of cuda broken --- pkgs/development/libraries/science/math/magma/generic.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/magma/generic.nix b/pkgs/development/libraries/science/math/magma/generic.nix index 9cd944679817..467bb07f53e1 100644 --- a/pkgs/development/libraries/science/math/magma/generic.nix +++ b/pkgs/development/libraries/science/math/magma/generic.nix @@ -234,9 +234,11 @@ stdenv.mkDerivation { platforms = platforms.linux; maintainers = with maintainers; [ connorbaker ]; - # Cf. https://bitbucket.org/icl/magma/src/fcfe5aa61c1a4c664b36a73ebabbdbab82765e9f/CMakeLists.txt#lines-20 + # Cf. https://github.com/icl-utk-edu/magma/blob/v2.9.0/CMakeLists.txt#L24-L31 broken = - !(cudaSupport || rocmSupport) # At least one back-end enabled + # dynamic CUDA support is broken https://github.com/NixOS/nixpkgs/issues/239237 + (cudaSupport && !static) + || !(cudaSupport || rocmSupport) # At least one back-end enabled || (cudaSupport && rocmSupport) # Mutually exclusive || (cudaSupport && cudaOlder "9.0") || (cudaSupport && strings.versionOlder version "2.7.1" && cudaPackages_11 == null);