From a141f15f46327b91292acdf267fb5ec66a3a1d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 29 Aug 2016 01:41:17 +0200 Subject: [PATCH] gimp: fix python plugins (#18061) --- pkgs/applications/graphics/gimp/2.8.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/gimp/2.8.nix b/pkgs/applications/graphics/gimp/2.8.nix index 27d7376fe526..bc101e241145 100644 --- a/pkgs/applications/graphics/gimp/2.8.nix +++ b/pkgs/applications/graphics/gimp/2.8.nix @@ -28,7 +28,12 @@ stdenv.mkDerivation rec { pythonPath = [ pygtk ]; - postInstall = ''wrapPythonPrograms''; + postFixup = '' + wrapPythonProgramsIn $out/lib/gimp/2.0/plug-ins/ + wrapProgram $out/bin/gimp \ + --prefix PYTHONPATH : "$PYTHONPATH" \ + --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" + ''; passthru = { inherit gtk; }; # probably its a good idea to use the same gtk in plugins ?