anchor.diff:  # TODO: would be nice to have nfsSupport (needs libnfs library)
   # TODO: librtmp
   , libvdpau ? null, vdpauSupport ? true
  -, pulseaudio ? null, pulseSupport ? false
  +, pulseaudio ? null, pulseSupport ? true
   }:
   
   assert dbusSupport  -> dbus_libs != null;
  
positive.code:       mesa glew fontconfig freetype ftgl
        libjpeg jasper libpng libtiff
        ffmpeg libmpeg2 libsamplerate libmad
        libogg libvorbis flac
        lzo libcdio libmodplug libass
        sqlite mysql nasm avahi libdvdcss lame
        curl bzip2 zip unzip glxinfo xdpyinfo
      ]
  
negative.code: assert pulseSupport -> pulseaudio != null;
  
  stdenv.mkDerivation rec {
      name = "xbmc-13.0";
  
      src = fetchurl {
        url = "https://github.com/xbmc/xbmc/archive/13.0-Gotham.tar.gz";
        sha256 = "096hin8qp1864ypyw9xysy13niwf79bgfgivxi7w7mh2dagn0mjx";
      };
  
      buildInputs = [
        makeWrapper libxml2 gnutls
        pkgconfig cmake gnumake yasm pythonFull
        boost libmicrohttpd autoreconfHook
        gettext pcre yajl fribidi libva
        openssl gperf tinyxml2 taglib libssh swig jre
        libX11 xproto inputproto which
        libXt libXmu libXext xextproto
  