anchor.diff: -{ alsaSupport ? true, xvSupport ? true, theoraSupport ? true, cacaSupport ? true
  -, xineramaSupport ? true, randrSupport ? true, dvdnavSupport ? true
  -, stdenv, fetchurl, fetchsvn, fetchgit, x11, freetype, fontconfig, zlib
  -, alsaLib ? null, libXv ? null, libtheora ? null, libcaca ? null
  -, libXinerama ? null, libXrandr ? null, libdvdnav ? null
  -, cdparanoia ? null, cddaSupport ? true
  -, amrnb ? null, amrwb ? null, amrSupport ? false
  -, x11Support ? true, libX11 ? null, libXext ? null
  -, jackaudioSupport ? false, jackaudio ? null
  -, x264Support ? false, x264 ? null
  -, xvidSupport ? false, xvidcore ? null
  +{ stdenv, fetchurl, freetype, pkgconfig, yasm, freefont_ttf
  +, x11Support ? true, libX11 ? null, libXext ? null, mesa ? null
  +, xineramaSupport ? true, libXinerama ? null
  +, xvSupport ? true, libXv ? null
  +, alsaSupport ? true, alsaLib ? null
  +, screenSaverSupport ? true, libXScrnSaver ? null
  +, vdpauSupport ? false, libvdpau ? null
  +, cddaSupport ? true, cdparanoia ? null
  +, dvdnavSupport ? true, libdvdnav ? null
  +, bluraySupport ? true, libbluray ? null
  +, amrSupport ? false, amrnb ? null, amrwb ? null
  +, cacaSupport ? true, libcaca ? null
   , lameSupport ? true, lame ? null
   , speexSupport ? true, speex ? null
  -, screenSaverSupport ? true, libXScrnSaver
  -, pulseSupport ? false, pulseaudio
  -, mesa, pkgconfig, unzip, yasm, freefont_ttf
  -, vdpauSupport ? false, libvdpau ? null
  +, theoraSupport ? true, libtheora ? null
  +, x264Support ? false, x264 ? null
  +, jackaudioSupport ? false, jackaudio ? null
  +, pulseSupport ? false, pulseaudio ? null
   }:
   
  +assert x11Support -> (libX11 != null && libXext != null && mesa != null);
  +assert xineramaSupport -> (libXinerama != null && x11Support);
  +assert xvSupport -> (libXv != null && x11Support);
   assert alsaSupport -> alsaLib != null;
  -assert x11Support -> libX11 != null;
  -assert xvSupport -> (libXv != null && x11Support);
  -assert theoraSupport -> libtheora != null;
  -assert cacaSupport -> libcaca != null;
  -assert xineramaSupport -> (libXinerama != null && x11Support);
  -assert randrSupport -> (libXrandr != null && x11Support);
  -assert dvdnavSupport -> libdvdnav != null;
  -assert cddaSupport -> cdparanoia != null;
  -assert jackaudioSupport -> jackaudio != null;
  -assert amrSupport -> (amrnb != null && amrwb != null);
   assert screenSaverSupport -> libXScrnSaver != null;
   assert vdpauSupport -> libvdpau != null;
  +assert cddaSupport -> cdparanoia != null;
  +assert dvdnavSupport -> libdvdnav != null;
  +assert bluraySupport -> libbluray != null;
  +assert amrSupport -> (amrnb != null && amrwb != null);
  +assert cacaSupport -> libcaca != null;
  +assert lameSupport -> lame != null;
   assert speexSupport -> speex != null;
  +assert theoraSupport -> libtheora != null;
  +assert x264Support -> x264 != null;
  +assert jackaudioSupport -> jackaudio != null;
  +assert pulseSupport -> pulseaudio != null;
  +
   
   let
   
  
positive.code:   crossAttrs = {
      dontSetConfigureCross = true;
      # Some things (vidix) are nanonote specific. Once someone cares, we can make options from them.
      preConfigure = preConfigure + ''
        configureFlags="`echo $configureFlags |
          sed -e 's/--codecsdir[^ ]\+//' \
          -e 's/--enable-runtime-cpudetection//' `"
  
negative.code:     };
    } else null;
  
  in
  
  stdenv.mkDerivation rec {
    name = "mplayer-1.1";
  
    src = fetchurl {
      # Old kind of URL:
      # url = http://nixos.org/tarballs/mplayer-snapshot-20101227.tar.bz2;
      # Snapshot I took on 20110423
  