anchor.diff:    installFlags = [ "install-man" ];
   
     passthru = {
  -    vaapiSupport = if reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm) then true else false;
  -    inherit vdpauSupport;
  +    inherit vaapiSupport vdpauSupport;
     };
   
     meta = with stdenv.lib; {
  
positive.code:       "--enable-libmp3lame"
        (ifMinVer "1.2" "--enable-iconv")
        "--enable-libtheora"
        (ifMinVer "0.6" (enableFeature (isLinux || isFreeBSD) "vaapi"))
        "--enable-vdpau"
        "--enable-libvorbis"
        (disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
  
negative.code: 
    # 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;
  
    vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm);
  in
  
  assert openglSupport -> mesa != null;
  