anchor.diff:    # 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;
  +  # Disable dependency that needs fixes before it will work on Darwin or Arm
  +  disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isArm) && reqMin minVer) then fixArg else origArg;
   in
   
   assert openglSupport -> mesa != null;
  
positive.code:   };
  
    passthru = {
      vaapiSupport = if reqMin "0.6" && (isLinux || isFreeBSD) then true else false;
      vdpauSupport = true;
    };
  
    meta = with stdenv.lib; {
  
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"
  