From d728271fcf97727163b35f645ee8739ba059dd21 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sat, 10 Aug 2024 10:57:01 +0200 Subject: [PATCH] ffmpeg: add snappy option --- pkgs/development/libraries/ffmpeg/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 4d73c8ae72be..6d76cf7cdcae 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -100,6 +100,7 @@ , withSamba ? withFullDeps && !stdenv.isDarwin && withGPLv3 # Samba protocol , withSdl2 ? withSmallDeps , withShaderc ? withFullDeps && !stdenv.isDarwin && lib.versionAtLeast version "5.0" +, withSnappy ? withFullDeps # Snappy compression, needed for hap encoding , withSoxr ? withHeadlessDeps # Resampling via soxr , withSpeex ? withHeadlessDeps # Speex de/encoder , withSrt ? withHeadlessDeps # Secure Reliable Transport (SRT) protocol @@ -296,6 +297,7 @@ , samba , SDL2 , shaderc +, snappy , soxr , speex , srt @@ -659,6 +661,7 @@ stdenv.mkDerivation (finalAttrs: { ] ++ optionals (versionAtLeast version "5.0") [ (enableFeature withShaderc "libshaderc") ] ++ [ + (enableFeature withSnappy "libsnappy") (enableFeature withSoxr "libsoxr") (enableFeature withSpeex "libspeex") (enableFeature withSrt "libsrt") @@ -798,6 +801,7 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withSamba [ samba ] ++ optionals withSdl2 [ SDL2 ] ++ optionals withShaderc [ shaderc ] + ++ optionals withSnappy [ snappy ] ++ optionals withSoxr [ soxr ] ++ optionals withSpeex [ speex ] ++ optionals withSrt [ srt ]