Merge pull request #7954 from qknight/inkscape_boxmaker

inkscape with boxmaker plugin

+24 -2
+24 -2
pkgs/applications/graphics/inkscape/default.nix
··· 2 , libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm 3 , glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool 4 , gsl, python, pyxml, lxml, poppler, imagemagick, libwpg, librevenge 5 - , libvisio, libcdr, libexif 6 }: 7 8 stdenv.mkDerivation rec { 9 name = "inkscape-0.91"; ··· 34 libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext 35 makeWrapper intltool gsl poppler imagemagick libwpg librevenge 36 libvisio libcdr libexif 37 - ]; 38 39 enableParallelBuilding = true; 40 doCheck = true; 41 42 postInstall = '' 43 # Make sure PyXML modules can be found at run-time. 44 for i in "$out/bin/"* 45 do
··· 2 , libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm 3 , glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool 4 , gsl, python, pyxml, lxml, poppler, imagemagick, libwpg, librevenge 5 + , libvisio, libcdr, libexif, unzip 6 + , boxMakerPlugin ? false # boxmaker plugin 7 }: 8 + 9 + let 10 + 11 + boxmaker = fetchurl { 12 + # http://www.inkscapeforum.com/viewtopic.php?f=11&t=10403 13 + url = "http://www.keppel.demon.co.uk/111000/files/BoxMaker0.91.zip"; 14 + sha256 = "5c5697f43dc3a95468f61f479cb50b7e2b93379a1729abf19e4040ac9f43a1a8"; 15 + }; 16 + 17 + in 18 19 stdenv.mkDerivation rec { 20 name = "inkscape-0.91"; ··· 45 libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext 46 makeWrapper intltool gsl poppler imagemagick libwpg librevenge 47 libvisio libcdr libexif 48 + ] ++ stdenv.lib.optional boxMakerPlugin unzip; 49 50 enableParallelBuilding = true; 51 doCheck = true; 52 53 postInstall = '' 54 + ${if boxMakerPlugin then " 55 + mkdir -p $out/share/inkscape/extensions/ 56 + # boxmaker packaged version 0.91 in a directory called 0.85 ?!?? 57 + unzip ${boxmaker}; 58 + cp boxmake-upd-0.85/* $out/share/inkscape/extensions/ 59 + rm -Rf boxmake-upd-0.85 60 + " 61 + else 62 + "" 63 + } 64 + 65 # Make sure PyXML modules can be found at run-time. 66 for i in "$out/bin/"* 67 do