anchor.diff:  { stdenv, fetchurl, pkgconfig, perl, perlXMLParser, gtk, libXft
   , libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm
   , glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool
  -, gsl, python, pyxml, lxml, poppler, imagemagick, libwpg }:
  +, gsl, python, pyxml, lxml, poppler, imagemagick, libwpg, librevenge
  +, libvisio, libcdr, libexif
  +}:
   
   stdenv.mkDerivation rec {
  -  name = "inkscape-0.48.5";
  +  name = "inkscape-0.91";
   
     src = fetchurl {
  -    url = "mirror://sourceforge/inkscape/${name}.tar.bz2";
  -    sha256 = "0sfr7a1vr1066rrkkqbqvcqs3gawalj68ralnhd6k87jz62fcv1b";
  +    url = "https://inkscape.global.ssl.fastly.net/media/resources/file/"
  +        + "${name}.tar.bz2";
  +    sha256 = "06ql3x732x2rlnanv0a8aharsnj91j5kplksg574090rks51z42d";
     };
   
  -  patches = [ ./configure-python-libs.patch ];
  -
  -  postPatch = stdenv.lib.optionalString doCheck
  -    ''sed -i 's:#include "../../src:#include "src:' src/cxxtests.cpp'';
  +  postPatch = ''
  +    patchShebangs share/extensions
  +  '';
   
     propagatedBuildInputs = [
       # Python is used at run-time to execute scripts, e.g., those from
  
positive.code:   buildInputs = [
      pkgconfig perl perlXMLParser gtk libXft libpng zlib popt boehmgc
      libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
      makeWrapper intltool gsl poppler imagemagick libwpg
    ];
  
    configureFlags = "--with-python";
  
    enableParallelBuilding = true;
    doCheck = true;
    checkFlags = "-j1";
  
    postInstall = ''
      # Make sure PyXML modules can be found at run-time.
  
negative.code:        --prefix PATH : ${python}/bin ||  \
          exit 2
      done
      rm "$out/share/icons/hicolor/icon-theme.cache"
    '';
  
    meta = with stdenv.lib; {
      license = "GPL";
  