ffmpeg-headless: disable cuda-llvm support on Darwin

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.
This commit is contained in:
Randy Eckenrode 2026-06-14 06:42:55 -04:00
commit c214e8a812
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -59,7 +59,7 @@
withChromaprint ? withFullDeps, # Audio fingerprinting
withCodec2 ? withFullDeps, # codec2 en/decoding
withCuda ? withFullDeps && withNvcodec,
withCudaLLVM ? withHeadlessDeps,
withCudaLLVM ? withHeadlessDeps && !stdenv.hostPlatform.isDarwin, # Cuda isnt supported on Darwin
withCudaNVCC ? withFullDeps && withUnfree && config.cudaSupport,
withCuvid ? withHeadlessDeps && withNvcodec,
withDav1d ? withHeadlessDeps, # AV1 decoder (focused on speed and correctness)