summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-02-18 13:12:58 +0100
committerGitHub <noreply@github.com>2021-02-18 13:12:58 +0100
commit266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe (patch)
tree99aa9bacceb8d5be4063f688466fcae83f213cef /pkgs
parentcc19a6173f0887e5a91cef849fd10a321da37cfb (diff)
parent4fb94610d9ca61e25011dba6ed0ef1f3a58abe51 (diff)
downloadnixpkgs-266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe.tar
nixpkgs-266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe.tar.gz
nixpkgs-266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe.tar.bz2
nixpkgs-266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe.tar.lz
nixpkgs-266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe.tar.xz
nixpkgs-266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe.tar.zst
nixpkgs-266b6cdea3203ae0164c9974cfb4d58c6ff3b3fe.zip
Merge pull request #113513 from raboof/inkscape-enable-eps-import
inkscape: ps and eps import
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/graphics/inkscape/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix
index ba6af5d781f..11340fa7468 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
   '';