From 3cdf37b2ff03643ee5f068c34e364517266e5576 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 21 Jul 2025 18:53:34 +0200 Subject: [PATCH] ffmpeg: use gmp for rtmp(e) --- pkgs/development/libraries/ffmpeg/generic.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 76bd9e39a938..bc69d2f2b05c 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -86,6 +86,7 @@ withFrei0r ? withFullDeps && withGPL, # frei0r video filtering withFribidi ? withHeadlessDeps, # Needed for drawtext filter withGme ? withFullDeps, # Game Music Emulator + withGmp ? withHeadlessDeps && withVersion3, # rtmp(t)e support withGnutls ? withHeadlessDeps, withGsm ? withFullDeps, # GSM de/encoder withHarfbuzz ? withHeadlessDeps && lib.versionAtLeast version "6.1", # Needed for drawtext filter @@ -122,7 +123,7 @@ withQuirc ? withFullDeps && lib.versionAtLeast version "7", # QR decoding withRav1e ? withFullDeps, # AV1 encoder (focused on speed and safety) withRist ? withHeadlessDeps, # Reliable Internet Stream Transport (RIST) protocol - withRtmp ? withFullDeps, # RTMP[E] support + withRtmp ? false, # RTMP[E] support via librtmp withRubberband ? withFullDeps && withGPL && !stdenv.hostPlatform.isFreeBSD, # Rubberband filter withSamba ? withFullDeps && !stdenv.hostPlatform.isDarwin && withGPLv3, # Samba protocol withSdl2 ? withSmallDeps, @@ -254,6 +255,7 @@ frei0r, fribidi, game-music-emu, + gmp, gnutls, gsm, harfbuzz, @@ -638,6 +640,7 @@ stdenv.mkDerivation ( (enableFeature withFrei0r "frei0r") (enableFeature withFribidi "libfribidi") (enableFeature withGme "libgme") + (enableFeature withGmp "gmp") (enableFeature withGnutls "gnutls") (enableFeature withGsm "libgsm") ] @@ -851,6 +854,7 @@ stdenv.mkDerivation ( ++ optionals withFrei0r [ frei0r ] ++ optionals withFribidi [ fribidi ] ++ optionals withGme [ game-music-emu ] + ++ optionals withGmp [ gmp ] ++ optionals withGnutls [ gnutls ] ++ optionals withGsm [ gsm ] ++ optionals withHarfbuzz [ harfbuzz ]