gimp: add gimp-with-plugin derivation

By default all plugins from pkgs.gimpPlugins set are enabled.

Default location of plugins changed from $out/${gimp.name} to
$out/lib/gimp/${majorVersion}. Resulting derivation for gimp+plugins
is set as search path for plugins by default (additional tweaking in
gimprc done for old plugin scheme should be removed)
This commit is contained in:
Alexander V. Nikolaev
2016-02-25 23:34:28 +02:00
parent fdd11c2c2b
commit 0649c8bde7
4 changed files with 45 additions and 3 deletions
@@ -6,9 +6,7 @@
{ pkgs, gimp }:
let
inherit (pkgs) stdenv fetchurl pkgconfig glib;
targetPluginDir = "$out/${gimp.name}-plugins";
targetScriptDir = "$out/${gimp.name}-scripts";
prefix = "plugin-gimp-";
inherit (gimp) targetPluginDir targetScriptDir;
pluginDerivation = a: stdenv.mkDerivation ({
prePhases = "extraLib";