diff options
author | Arnout Engelen <arnout@bzzt.net> | 2021-02-17 21:12:27 +0100 |
---|---|---|
committer | Arnout Engelen <arnout@bzzt.net> | 2021-02-17 23:16:04 +0100 |
commit | 4fb94610d9ca61e25011dba6ed0ef1f3a58abe51 (patch) | |
tree | ed9d8b6c612186777ef5dec450b76a95b0e18517 /pkgs/applications/graphics/inkscape/default.nix | |
parent | 64b4617883844efe0cc20163e007ee636462eb18 (diff) |
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.
Diffstat (limited to 'pkgs/applications/graphics/inkscape/default.nix')
-rw-r--r-- | pkgs/applications/graphics/inkscape/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index ba6af5d781f24..11340fa74686b 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -7,6 +7,7 @@ , fetchurl , gettext , gdl +, ghostscript , glib , glib-networking , glibmm @@ -74,6 +75,12 @@ stdenv.mkDerivation rec { postPatch = '' patchShebangs share/extensions + substituteInPlace share/extensions/eps_input.inx \ + --replace "location=\"path\">ps2pdf" "location=\"absolute\">${ghostscript}/bin/ps2pdf" + substituteInPlace share/extensions/ps_input.inx \ + --replace "location=\"path\">ps2pdf" "location=\"absolute\">${ghostscript}/bin/ps2pdf" + substituteInPlace share/extensions/ps_input.py \ + --replace "call('ps2pdf'" "call('${ghostscript}/bin/ps2pdf'" patchShebangs share/templates patchShebangs man/fix-roff-punct ''; |