From 4b366219c1b8bd56bfe669cd30656b43f7774be0 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 27 Jul 2026 11:28:51 +0200 Subject: [PATCH] ffmpeg-headless: Disable LLVM CUDA on powerpc64-linux Enabling this uses the unwrapped Clang compiler, which is unable to handle the triplets used on powerpc64-linux. > clang: error: version 'abielfv1' in target triple 'powerpc64-unknown-linux-gnuabielfv1' is invalid --- pkgs/development/libraries/ffmpeg/generic.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 96166235a309..db956cc3f614 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -59,7 +59,12 @@ withChromaprint ? withFullDeps, # Audio fingerprinting withCodec2 ? withFullDeps, # codec2 en/decoding withCuda ? withFullDeps && withNvcodec, - withCudaLLVM ? withHeadlessDeps && !stdenv.hostPlatform.isDarwin, # Cuda isn’t supported on Darwin + withCudaLLVM ? + withHeadlessDeps + # Cuda isn’t supported on Darwin + && !stdenv.hostPlatform.isDarwin + # Clang for our ppc64 targets needs cc-wrapper to work + && !(stdenv.buildPlatform.isPower64 && stdenv.buildPlatform.isBigEndian), withCudaNVCC ? withFullDeps && withUnfree && config.cudaSupport, withCuvid ? withHeadlessDeps && withNvcodec, withDav1d ? withHeadlessDeps, # AV1 decoder (focused on speed and correctness)