anchor.diff:      '';
     };
   }
  +# TODO: Wayland support
  +# TODO: investigate caca support
  +# TODO: investigate lua5_sockets bug
  
positive.code:   '';
  
    meta = with stdenv.lib; {
      description = "A media player that supports many video formats (MPlayer and mplayer2 fork)";
      homepage = http://mpv.io;
      license = licenses.gpl2Plus;
  
negative.code: , vaapiSupport ? false, libva ? null
  }:
  
  assert x11Support -> (libX11 != null && libXext != null && mesa != null && libXxf86vm != null);
  assert xineramaSupport -> (libXinerama != null && x11Support);
  assert xvSupport -> (libXv != null && x11Support);
  