Skip to content

Commit

Permalink
Merge pull request #333646 from jopejoe1/ffmpeg-snappy
Browse files Browse the repository at this point in the history
ffmpeg: add snappy option
  • Loading branch information
Atemu committed Aug 10, 2024
2 parents 7909b49 + d728271 commit f4f78c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/ffmpeg/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -299,6 +300,7 @@
, samba
, SDL2
, shaderc
, snappy
, soxr
, speex
, srt
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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 ]
Expand Down

0 comments on commit f4f78c8

Please sign in to comment.