anchor.diff:    patches = [ ./gconf.patch ];
   
     postPatch = ''
  -    sed -i -e '2i import os; os.environ["GST_PLUGIN_PATH"] = \\\
  -      '"'$GST_PLUGIN_PATH'" miro.real
  -
       sed -i -e 's/\$(shell which python)/python/' Makefile
       sed -i -e 's|/usr/bin/||' -e 's|/usr||' \
              -e 's/BUILD_TIME[^,]*/BUILD_TIME=0/' setup.py
  
positive.code: { stdenv, fetchurl, python, buildPythonPackage, pythonPackages, pkgconfig
  , pyrex096, ffmpeg, boost, glib, pygobject, gtk2, webkit_gtk2, libsoup, pygtk
  , taglib, pysqlite, pycurl, mutagen, pycairo, pythonDBus, pywebkitgtk
  , libtorrentRasterbar
  , gst_python, gst_plugins_base, gst_plugins_good, gst_ffmpeg
  }:
  
  
negative.code: 
    postInstall = ''
      mv "$out/bin/miro.real" "$out/bin/miro"
      wrapProgram "$out/bin/miro" \
        --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \
        --prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
        --prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share:$out/share"
    '';
  
    buildInputs = [
      pkgconfig pyrex096 ffmpeg boost glib pygobject gtk2 webkitgtk2 libsoup
      pygtk taglib
    ];
  
  