anchor.diff:    };
   
     passthru = {
  -    vaapiSupport = if reqMin "0.6" && (isLinux || isFreeBSD) then true else false;
  -    vdpauSupport = true;
  +    vaapiSupport = if reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm) then true else false;
  +    inherit vdpauSupport;
     };
   
     meta = with stdenv.lib; {
  
positive.code:     bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
      libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib
    ] ++ optional openglSupport mesa
      ++ optionals (!isDarwin) [ libvpx libpulseaudio ] # Need to be fixed on Darwin
      ++ optional (isLinux || isFreeBSD) libva
      ++ optional isLinux alsaLib
      ++ optional isDarwin Cocoa;
  
    enableParallelBuilding = true;
  
  
negative.code:       (ifMinVer "0.6" (enableFeature (isLinux || isFreeBSD) "vaapi"))
        "--enable-vdpau"
        "--enable-libvorbis"
        (disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
        (ifMinVer "2.4" "--enable-lzma")
        (ifMinVer "2.2" (enableFeature openglSupport "opengl"))
        (disDarwinOrArmFix (ifMinVer "0.9" "--enable-libpulse") "0.9" "--disable-libpulse")
        (ifMinVer "2.5" (if sdlSupport then "--enable-sdl" else "")) # Only configurable since 2.5, auto detected before then
        (ifMinVer "1.2" "--enable-libsoxr")
        "--enable-libx264"
        "--enable-libxvid"
  