diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 2be86d5cb85a..c5c0a3895c4d 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -112,6 +112,8 @@ , withXcbShape ? withFullDeps # X11 grabbing shape rendering , withXcbShm ? withFullDeps # X11 grabbing shm communication , withXcbxfixes ? withFullDeps # X11 grabbing mouse rendering +, withXevd ? withFullDeps && lib.versionAtLeast version "7" && stdenv.hostPlatform.isx86 # MPEG-5 EVC decoding +, withXeve ? withFullDeps && lib.versionAtLeast version "7" && stdenv.hostPlatform.isx86 # MPEG-5 EVC encoding , withXlib ? withFullDeps # Xlib support , withXml2 ? withFullDeps # libxml2 support, for IMF and DASH demuxers , withXvid ? withHeadlessDeps && withGPL # Xvid encoder, native encoder exists @@ -279,6 +281,8 @@ , x264 , x265 , xavs +, xevd +, xeve , xvidcore , xz , zeromq4 @@ -587,6 +591,10 @@ stdenv.mkDerivation (finalAttrs: { (enableFeature withXcbShape "libxcb-shape") (enableFeature withXcbShm "libxcb-shm") (enableFeature withXcbxfixes "libxcb-xfixes") + ] ++ optionals (versionAtLeast version "7") [ + (enableFeature withXevd "libxevd") + (enableFeature withXeve "libxeve") + ] ++ [ (enableFeature withXlib "xlib") (enableFeature withXml2 "libxml2") (enableFeature withXvid "libxvid") @@ -696,6 +704,8 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withX265 [ x265 ] ++ optionals withXavs [ xavs ] ++ optionals withXcb [ libxcb ] + ++ optionals withXevd [ xevd ] + ++ optionals withXeve [ xeve ] ++ optionals withXlib [ libX11 libXv libXext ] ++ optionals withXml2 [ libxml2 ] ++ optionals withXvid [ xvidcore ]