diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 0ef5a4ec68d4..cb7aff41b534 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -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 ]