From dedd0d1c8f7dda7d69ba37ed61a1ccca3e34b121 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 8 Feb 2026 22:55:04 +0000 Subject: [PATCH] cudaPackages.cuda_nvcc: optionals -> optionalString --- pkgs/development/cuda-modules/packages/cuda_nvcc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/cuda-modules/packages/cuda_nvcc.nix b/pkgs/development/cuda-modules/packages/cuda_nvcc.nix index 843736314013b..5abce2729b4a0 100644 --- a/pkgs/development/cuda-modules/packages/cuda_nvcc.nix +++ b/pkgs/development/cuda-modules/packages/cuda_nvcc.nix @@ -168,7 +168,7 @@ buildRedist (finalAttrs: { # The cospi|sinpi|rsqrt function signatures in include/common/math_functions.h do not match # glibc 2.42's. # Indeed, there they are declared with noexcept(true) which is not the case in cuda_nvcc. - + lib.optionals (lib.versionAtLeast glibc.version "2.42") '' + + lib.optionalString (lib.versionAtLeast glibc.version "2.42") '' nixLog "Patching math_functions.h signatures to match glibc's ones" substituteInPlace "''${!outputInclude:?}/include/crt/math_functions.h" \ --replace-fail \