summary refs log tree commit diff
path: root/pkgs/applications/graphics/inkscape/default.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-06-01 06:55:38 +0200
committerProfpatsch <mail@profpatsch.de>2017-06-01 06:55:38 +0200
commitbd4c6b456e830eee5f34eae9d9e068278a5df74a (patch)
tree605a2259e888649e755b8846ea7abc73f92a5cdf /pkgs/applications/graphics/inkscape/default.nix
parentb116a1c65c344e868924e327324ae3ac1e0626cd (diff)
downloadnixpkgs-bd4c6b456e830eee5f34eae9d9e068278a5df74a.tar
nixpkgs-bd4c6b456e830eee5f34eae9d9e068278a5df74a.tar.gz
nixpkgs-bd4c6b456e830eee5f34eae9d9e068278a5df74a.tar.bz2
nixpkgs-bd4c6b456e830eee5f34eae9d9e068278a5df74a.tar.lz
nixpkgs-bd4c6b456e830eee5f34eae9d9e068278a5df74a.tar.xz
nixpkgs-bd4c6b456e830eee5f34eae9d9e068278a5df74a.tar.zst
nixpkgs-bd4c6b456e830eee5f34eae9d9e068278a5df74a.zip
inkscape: patch python interpreter for extension code
Diffstat (limited to 'pkgs/applications/graphics/inkscape/default.nix')
-rw-r--r--pkgs/applications/graphics/inkscape/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix
index fdcd7636c02..f48ce6a4ce4 100644
--- a/pkgs/applications/graphics/inkscape/default.nix
+++ b/pkgs/applications/graphics/inkscape/default.nix
@@ -26,17 +26,18 @@ stdenv.mkDerivation rec {
   postPatch = ''
     patchShebangs share/extensions
     patchShebangs fix-roff-punct
-  '';
 
-  # Python is used at run-time to execute scripts, e.g., those from
-  # the "Effects" menu.
-  propagatedBuildInputs = [ python2Env ];
+    # Python is used at run-time to execute scripts, e.g., those from
+    # the "Effects" menu.
+    substituteInPlace src/extension/implementation/script.cpp \
+      --replace '"python-interpreter", "python"' '"python-interpreter", "${python2Env}/bin/python"'
+  '';
 
   buildInputs = [
     pkgconfig perl perlXMLParser libXft libpng zlib popt boehmgc
     libxml2 libxslt glib gtkmm2 glibmm libsigcxx lcms boost gettext
     makeWrapper intltool gsl poppler imagemagick libwpg librevenge
-    libvisio libcdr libexif automake114x potrace cmake
+    libvisio libcdr libexif automake114x potrace cmake python2Env
   ];
 
   enableParallelBuilding = true;