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