diff options
author | Joachim Schiele <js@lastlog.de> | 2015-05-21 15:43:02 +0200 |
---|---|---|
committer | Joachim Schiele <js@lastlog.de> | 2015-05-23 12:47:15 +0200 |
commit | 582ecf47711c60c28d554b42f60af2711578c76b (patch) | |
tree | 3a7dc5d98ecddf8162c4903b5d9876abe49eb274 /pkgs/applications/graphics/inkscape/default.nix | |
parent | 0c35edb25c80be61be50e2fb8ad1195a573d762e (diff) | |
download | nixpkgs-582ecf47711c60c28d554b42f60af2711578c76b.tar nixpkgs-582ecf47711c60c28d554b42f60af2711578c76b.tar.gz nixpkgs-582ecf47711c60c28d554b42f60af2711578c76b.tar.bz2 nixpkgs-582ecf47711c60c28d554b42f60af2711578c76b.tar.lz nixpkgs-582ecf47711c60c28d554b42f60af2711578c76b.tar.xz nixpkgs-582ecf47711c60c28d554b42f60af2711578c76b.tar.zst nixpkgs-582ecf47711c60c28d554b42f60af2711578c76b.zip |
inkscape with boxmaker plugin
Diffstat (limited to 'pkgs/applications/graphics/inkscape/default.nix')
-rw-r--r-- | pkgs/applications/graphics/inkscape/default.nix | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index 41531ed0de8..409fd0a767c 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -2,9 +2,20 @@ , libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm , glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool , gsl, python, pyxml, lxml, poppler, imagemagick, libwpg, librevenge -, libvisio, libcdr, libexif +, libvisio, libcdr, libexif, unzip +, boxMakerPlugin ? false # boxmaker plugin }: +let + +boxmaker = fetchurl { + # http://www.inkscapeforum.com/viewtopic.php?f=11&t=10403 + url = "http://www.keppel.demon.co.uk/111000/files/BoxMaker0.91.zip"; + sha256 = "5c5697f43dc3a95468f61f479cb50b7e2b93379a1729abf19e4040ac9f43a1a8"; +}; + +in + stdenv.mkDerivation rec { name = "inkscape-0.91"; @@ -34,12 +45,23 @@ stdenv.mkDerivation rec { libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext makeWrapper intltool gsl poppler imagemagick libwpg librevenge libvisio libcdr libexif - ]; + ] ++ stdenv.lib.optional boxMakerPlugin unzip; enableParallelBuilding = true; doCheck = true; postInstall = '' + ${if boxMakerPlugin then " + mkdir -p $out/share/inkscape/extensions/ + # boxmaker packaged version 0.91 in a directory called 0.85 ?!?? + unzip ${boxmaker}; + cp boxmake-upd-0.85/* $out/share/inkscape/extensions/ + rm -Rf boxmake-upd-0.85 + " + else + "" + } + # Make sure PyXML modules can be found at run-time. for i in "$out/bin/"* do |