gimp-with-plugins: Use consistent GIMP version

In case `gimp` attribute from `gimpPlugins` scope is overridden to something different than the top-level one.

+3 -2
+3 -2
pkgs/applications/graphics/gimp/wrapper.nix
··· 1 - { lib, symlinkJoin, gimp, makeWrapper, gimpPlugins, gnome, plugins ? null}: 1 + { lib, symlinkJoin, makeWrapper, gimpPlugins, gnome, plugins ? null}: 2 2 3 3 let 4 + inherit (gimpPlugins) gimp; 4 5 allPlugins = lib.filter (pkg: lib.isDerivation pkg && !pkg.meta.broken or false) (lib.attrValues gimpPlugins); 5 - selectedPlugins = lib.filter (pkg: pkg != gimpPlugins.gimp) (if plugins == null then allPlugins else plugins); 6 + selectedPlugins = lib.filter (pkg: pkg != gimp) (if plugins == null then allPlugins else plugins); 6 7 extraArgs = map (x: x.wrapArgs or "") selectedPlugins; 7 8 versionBranch = lib.versions.majorMinor gimp.version; 8 9