anchor.diff:        ffmpeg libmpeg2 libsamplerate libmad
         libogg libvorbis flac
         lzo libcdio libmodplug libass
  -      sqlite mysql nasm
  +      sqlite mysql nasm avahi libdvdcss lame
         curl bzip2 zip unzip glxinfo xdpyinfo
       ]
       ++ lib.optional dbusSupport dbus_libs
       ++ lib.optional udevSupport udev
       ++ lib.optional usbSupport libusb
       ++ lib.optional sambaSupport samba
  -    ++ lib.optional vdpauSupport libvdpau;
  +    ++ lib.optional vdpauSupport libvdpau
  +    ++ lib.optional pulseSupport pulseaudio;
   
       dontUseCmakeConfigure = true;
   
  
positive.code: assert usbSupport   -> libusb != null && ! udevSupport; # libusb won't be used if udev is avaliable
  assert sambaSupport -> samba != null;
  assert vdpauSupport -> libvdpau != null && ffmpeg.vdpauSupport;
  
  stdenv.mkDerivation rec {
      name = "xbmc-12.1";
  
negative.code: , libusb ? null, usbSupport ? false
  , samba ? null, sambaSupport ? true
  # TODO: would be nice to have nfsSupport (needs libnfs library)
  # TODO: librtmp
  , libvdpau ? null, vdpauSupport ? true
  , pulseaudio ? null, pulseSupport ? false
  }:
  
  assert dbusSupport  -> dbus_libs != null;
  