From c214e8a812e8ea8dfebdf7006b8cdd7b0796c1e4 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 14 Jun 2026 06:42:55 -0400 Subject: [PATCH] ffmpeg-headless: disable cuda-llvm support on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After https://github.com/NixOS/nixpkgs/pull/518519, Clang is unwrapped when cuda-llvm support is enabled when building ffmpeg. This causes ffmpeg-headless to fail to build on Darwin because its `configure` script cannot find dependencies due to using an unwrapped compiler. Since Cuda isn’t supported on Darwin anyway, disabling cuda-llvm has the effect of using a wrapped Clang on Darwin again. --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index a366393f6f79..dbf12cd3e722 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -59,7 +59,7 @@ withChromaprint ? withFullDeps, # Audio fingerprinting withCodec2 ? withFullDeps, # codec2 en/decoding withCuda ? withFullDeps && withNvcodec, - withCudaLLVM ? withHeadlessDeps, + withCudaLLVM ? withHeadlessDeps && !stdenv.hostPlatform.isDarwin, # Cuda isn’t supported on Darwin withCudaNVCC ? withFullDeps && withUnfree && config.cudaSupport, withCuvid ? withHeadlessDeps && withNvcodec, withDav1d ? withHeadlessDeps, # AV1 decoder (focused on speed and correctness)