anchor.diff:  , libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm2
   , glibmm, libsigcxx, lcms, boost, gettext, makeWrapper
   , gsl, python2, poppler, imagemagick, libwpg, librevenge
  -, libvisio, libcdr, libexif, potrace, autoreconfHook
  -, intltool
  -, lib
  +, libvisio, libcdr, libexif, potrace, cmake
   }:
  -
  -# Note that originally this Nix expression used CMake to build but
  -# this led to errors on MacOS of "Too many arguments". Inkscape
  -# supports autoconf and we will use this for now on.
   
   let
     python2Env = python2.withPackages(ps: with ps; [ numpy lxml ]);
  
positive.code:       --replace '"python-interpreter", "python"' '"python-interpreter", "${python2Env}/bin/python"'
    '';
  
    nativeBuildInputs = [ pkgconfig autoreconfHook intltool ];
    buildInputs = [
      perl perlXMLParser libXft libpng zlib popt boehmgc
      libxml2 libxslt glib gtkmm2 glibmm libsigcxx lcms boost gettext
      makeWrapper gsl poppler imagemagick libwpg librevenge
      libvisio libcdr libexif potrace python2Env
    ];
  
    enableParallelBuilding = true;
  
    preConfigure = ''
      intltoolize -f
    '';
  
    postInstall = ''
      # Make sure PyXML modules can be found at run-time.
      rm "$out/share/icons/hicolor/icon-theme.cache"
    '';
  
    # 0.92.3 complains about an invalid conversion from const char * to char *
    NIX_CFLAGS_COMPILE = " -fpermissive ";
  
    meta = with lib; {
      license = "GPL";
      homepage = https://www.inkscape.org;
      description = "Vector graphics editor";
  
negative.code:     sha256 = "1chng2yw8dsjxc9gf92aqv7plj11cav8ax321wmakmv5bb09cch6";
    };
  
    unpackPhase = ''
      cp $src ${name}.tar.bz2
      tar xvjf ${name}.tar.bz2 > /dev/null
      cd ${name}
    '';
  
    postPatch = ''
      patchShebangs share/extensions
      patchShebangs fix-roff-punct
  