Merge pull request #333646 from jopejoe1/ffmpeg-snappy

ffmpeg: add snappy option
This commit is contained in:
Atemu 2024-08-10 15:00:02 +02:00 committed by GitHub
commit f4f78c86ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,6 +101,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
@ -299,6 +300,7 @@
, samba
, SDL2
, shaderc
, snappy
, soxr
, speex
, srt
@ -628,6 +630,7 @@ stdenv.mkDerivation (finalAttrs: {
] ++ optionals (versionAtLeast version "5.0") [
(enableFeature withShaderc "libshaderc")
] ++ [
(enableFeature withSnappy "libsnappy")
(enableFeature withSoxr "libsoxr")
(enableFeature withSpeex "libspeex")
(enableFeature withSrt "libsrt")
@ -768,6 +771,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 ]