git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #113513 from raboof/inkscape-enable-eps-import

inkscape: ps and eps import

commit266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe authorSandro <sandro.jaeckel@gmail.com> dateThu 18 Feb 2021, 13:12 (6 years ago) parentcc19a614fb9461
1 file changed+7
pkgs/applications/graphics/inkscape/default.nix+7
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 '';