summary refs log tree commit diff
path: root/pkgs/applications/graphics/gimp
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-11-02 15:42:33 +0100
committerJan Tojnar <jtojnar@gmail.com>2019-11-03 14:43:12 +0100
commitae21a2bc60bb4338e8d13899605b2378c1d89c87 (patch)
treedc4184e344a76cf31597b352420b0aa8fd7c963f /pkgs/applications/graphics/gimp
parent43c3f471b8899eaf55e298f81b8cf79b65c0bf7d (diff)
downloadnixpkgs-ae21a2bc60bb4338e8d13899605b2378c1d89c87.tar
nixpkgs-ae21a2bc60bb4338e8d13899605b2378c1d89c87.tar.gz
nixpkgs-ae21a2bc60bb4338e8d13899605b2378c1d89c87.tar.bz2
nixpkgs-ae21a2bc60bb4338e8d13899605b2378c1d89c87.tar.lz
nixpkgs-ae21a2bc60bb4338e8d13899605b2378c1d89c87.tar.xz
nixpkgs-ae21a2bc60bb4338e8d13899605b2378c1d89c87.tar.zst
nixpkgs-ae21a2bc60bb4338e8d13899605b2378c1d89c87.zip
gimp-with-plugins: fix installing custom scripts
script-fu (Scheme) scripts are not actually loaded from $GIMP2_PLUGINDIR (lib/gimp/2.10) but $GIMP_DATADIR (share/gimp/2.10).
Diffstat (limited to 'pkgs/applications/graphics/gimp')
-rw-r--r--pkgs/applications/graphics/gimp/default.nix2
-rw-r--r--pkgs/applications/graphics/gimp/wrapper.nix1
2 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/gimp/default.nix b/pkgs/applications/graphics/gimp/default.nix
index 3eff5642f11..e53deb99b5b 100644
--- a/pkgs/applications/graphics/gimp/default.nix
+++ b/pkgs/applications/graphics/gimp/default.nix
@@ -145,7 +145,7 @@ in stdenv.mkDerivation rec {
     # used for determining plug-in installation paths
     majorVersion = "${lib.versions.major version}.0";
     targetPluginDir = "lib/gimp/${majorVersion}/plug-ins";
-    targetScriptDir = "lib/gimp/${majorVersion}/scripts";
+    targetScriptDir = "share/gimp/${majorVersion}/scripts";
 
     # probably its a good idea to use the same gtk in plugins ?
     gtk = gtk2;
diff --git a/pkgs/applications/graphics/gimp/wrapper.nix b/pkgs/applications/graphics/gimp/wrapper.nix
index d58dc375cb9..841728d3a29 100644
--- a/pkgs/applications/graphics/gimp/wrapper.nix
+++ b/pkgs/applications/graphics/gimp/wrapper.nix
@@ -17,6 +17,7 @@ in symlinkJoin {
     for each in gimp-${versionBranch} gimp-console-${versionBranch}; do
       wrapProgram $out/bin/$each \
         --set GIMP2_PLUGINDIR "$out/lib/gimp/2.0" \
+        --set GIMP2_DATADIR "$out/share/gimp/2.0" \
         --prefix GTK_PATH : "${gnome3.gnome-themes-extra}/lib/gtk-2.0" \
         ${toString extraArgs}
     done