inkscape: ps and eps import
There are a number of extensions, like the eps import,
that only become available when ps2pdf is available.
https://gitlab.com/inkscape/extensions/-/blob/master/eps_input.inx#L6
This is not so obvious, and this PR adds ghostscript (which provides ps2pdf)
explicitly so those extensions are always available and using a stable
version instead of relying on the PATH.
This will increase the inkscape closure by about 60MB,
which is quite a chunk, but perhaps not too bad on a
total of 1100MB.
commit4fb94610d9ca61e25011dba6ed0ef1f3a58abe51
authorArnout Engelen <arnout@bzzt.net>
dateWed 17 Feb 2021, 21:12 (6 years ago)
parent64b4617
pkgs/applications/graphics/inkscape/default.nix+7
@@ -7,6 +7,7 @@
77, fetchurl
88, gettext
99, gdl
10+, ghostscript
1011, glib
1112, glib-networking
1213, glibmm
@@ -74,6 +75,12 @@ stdenv.mkDerivation rec {
7475
7576 postPatch = ''
7677 patchShebangs share/extensions
78+ substituteInPlace share/extensions/eps_input.inx \
79+ --replace "location=\"path\">ps2pdf" "location=\"absolute\">${ghostscript}/bin/ps2pdf"
80+ substituteInPlace share/extensions/ps_input.inx \
81+ --replace "location=\"path\">ps2pdf" "location=\"absolute\">${ghostscript}/bin/ps2pdf"
82+ substituteInPlace share/extensions/ps_input.py \
83+ --replace "call('ps2pdf'" "call('${ghostscript}/bin/ps2pdf'"
7784 patchShebangs share/templates
7885 patchShebangs man/fix-roff-punct
7986 '';