anchor.diff:        (ifMinVer "0.6" (enableFeature (isLinux || isFreeBSD) "vaapi"))
         "--enable-vdpau"
         "--enable-libvorbis"
  -      (disDarwinFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
  +      (disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
         (ifMinVer "2.4" "--enable-lzma")
         (ifMinVer "2.2" (enableFeature openglSupport "opengl"))
  -      (disDarwinFix (ifMinVer "0.9" "--enable-libpulse") "0.9" "--disable-libpulse")
  -      (ifMinVer "2.5" "--enable-sdl") # Only configurable since 2.5, auto detected before then
  +      (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"
  
positive.code:   # Version specific fix
    verFix = withoutFix: fixVer: withFix: if reqMatch fixVer then withFix else withoutFix;
  
    # Disable dependency that needs fixes before it will work on Darwin
    disDarwinFix = origArg: minVer: fixArg: if (isDarwin && reqMin minVer) then fixArg else origArg;
  in
  
  assert openglSupport -> mesa != null;
  
negative.code:   };
  
    passthru = {
      vaapiSupport = if reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm) then true else false;
      inherit vdpauSupport;
    };
  
    meta = with stdenv.lib; {
  