gimp: Fix interpreter path

GIMP uses python interpreter specified in pygimp.interp file for running Python plug-ins,
so any Python related wrapping is useless. It will pick up and use the python from build PATH.

Let’s use a python environment containing pygtk, which is needed by many plug-ins.

Closes: https://github.com/NixOS/nixpkgs/issues/87883

+4 -8
+4 -8
pkgs/applications/graphics/gimp/default.nix
··· 28 28 , ghostscript 29 29 , aalib 30 30 , shared-mime-info 31 - , python2Packages 31 + , python2 32 32 , libexif 33 33 , gettext 34 + , makeWrapper 34 35 , xorg 35 36 , glib-networking 36 37 , libmypaint ··· 47 48 }: 48 49 49 50 let 50 - inherit (python2Packages) pygtk wrapPython python; 51 + python = python2.withPackages (pp: [ pp.pygtk ]); 51 52 in stdenv.mkDerivation rec { 52 53 pname = "gimp"; 53 54 version = "2.10.20"; ··· 63 64 pkgconfig 64 65 intltool 65 66 gettext 66 - wrapPython 67 + makeWrapper 67 68 ]; 68 69 69 70 buildInputs = [ ··· 97 98 libwebp 98 99 libheif 99 100 python 100 - pygtk 101 101 libexif 102 102 xorg.libXpm 103 103 glib-networking ··· 116 116 gegl 117 117 ]; 118 118 119 - pythonPath = [ pygtk ]; 120 - 121 119 # Check if librsvg was built with --disable-pixbuf-loader. 122 120 PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${librsvg}/${gdk-pixbuf.moduleDir}"; 123 121 ··· 136 134 ]; 137 135 138 136 postFixup = '' 139 - wrapPythonProgramsIn $out/lib/gimp/${passthru.majorVersion}/plug-ins/ 140 137 wrapProgram $out/bin/gimp-${lib.versions.majorMinor version} \ 141 - --prefix PYTHONPATH : "$PYTHONPATH" \ 142 138 --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" 143 139 ''; 144 140