gimpPlugins: include GIMP into the scope

So that it can be easily overridden.

Also clean up, update usage comment for this century and remove alias.
This commit is contained in:
Jan Tojnar
2020-11-11 14:41:15 +01:00
parent f4c513125d
commit aa96bd294b
2 changed files with 31 additions and 21 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
let
allPlugins = lib.filter (pkg: lib.isDerivation pkg && !pkg.meta.broken or false) (lib.attrValues gimpPlugins);
selectedPlugins = if plugins == null then allPlugins else plugins;
selectedPlugins = lib.filter (pkg: pkg != gimpPlugins.gimp) (if plugins == null then allPlugins else plugins);
extraArgs = map (x: x.wrapArgs or "") selectedPlugins;
versionBranch = stdenv.lib.versions.majorMinor gimp.version;