From b0208caf82c6d5f61cd006eac513ebe8423e0bfd Mon Sep 17 00:00:00 2001 From: Daniel Fullmer Date: Sun, 28 Jun 2026 21:01:16 -0700 Subject: [PATCH] ctranslate2: don't set default nvcc arch flags This fixes a build failure when using cudaPackages_13: > Unsupported gpu architecture 'compute_53' --- pkgs/by-name/ct/ctranslate2/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/ct/ctranslate2/package.nix b/pkgs/by-name/ct/ctranslate2/package.nix index 812a6d88286f2..35e175647aaf4 100644 --- a/pkgs/by-name/ct/ctranslate2/package.nix +++ b/pkgs/by-name/ct/ctranslate2/package.nix @@ -51,6 +51,13 @@ stdenv'.mkDerivation (finalAttrs: { 'CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)' sed -e '1i #include ' -i third_party/cxxopts/include/cxxopts.hpp + + # Prevent setting the default nvcc arch flags, which can be + # ones that don't work with the current CUDA version + substituteInPlace CMakeLists.txt \ + --replace-fail \ + 'list(APPEND CUDA_NVCC_FLAGS ''${ARCH_FLAGS})' \ + "" ''; nativeBuildInputs = [