@@ -3,7 +3,7 @@
33# preferences -> Folders -> Plug-ins
44# same applies for the scripts
55
6−{ pkgs, gimp }:
6+{ config, pkgs, gimp }:
77let
88 inherit (pkgs) stdenv fetchurl pkgconfig intltool glib fetchFromGitHub;
99 inherit (gimp) targetPluginDir targetScriptDir;
@@ -35,7 +35,8 @@ let
3535 };
3636
3737in
38−rec {
38+
39+stdenv.lib.makeScope pkgs.newScope (self: with self; {
3940 gap = pluginDerivation {
4041 /* menu:
4142 Video
@@ -90,32 +91,15 @@ rec {
9091 meta.broken = true;
9192 };
9293
93− resynthesizer = pluginDerivation {
94+ resynthesizer = pluginDerivation rec {
9495 /* menu:
95− Filters/Map/Resynthesize
96− Filters/Enhance/Smart enlarge
97− Filters/Enhance/Smart sharpen
98− Filters/Enhance/Smart remove selection
99− */
100− name = "resynthesizer-0.16";
101− buildInputs = with pkgs; [ fftw ];
102− src = fetchurl {
103− url = http://www.logarithmic.net/pfh-files/resynthesizer/resynthesizer-0.16.tar.gz;
104− sha256 = "1k90a1jzswxmajn56rdxa4r60v9v34fmqsiwfdxqcvx3yf4yq96x";
105− };
106−
107− installPhase = "
108− installPlugins resynth
109− installScripts smart-{enlarge,remove}.scm
110− ";
111− };
112−
113− resynthesizer2 = pluginDerivation rec {
114− /* menu:
115− Filters/Map/Resynthesize
116− Filters/Enhance/Smart enlarge
117− Filters/Enhance/Smart sharpen
118− Filters/Enhance/Smart remove selection
96+ Edit/Fill with pattern seamless...
97+ Filters/Enhance/Heal selection...
98+ Filters/Enhance/Heal transparency...
99+ Filters/Enhance/Sharpen by synthesis...
100+ Filters/Enhance/Uncrop...
101+ Filters/Map/Style...
102+ Filters/Render/Texture...
119103 */
120104 pname = "resynthesizer";
121105 version = "2.0.3";
@@ -243,4 +227,8 @@ rec {
243227 };
244228 */
245229
246−}
230+} // stdenv.lib.optionalAttrs (config.allowAliases or true) {
231+
232+ resynthesizer2 = resynthesizer;
233+
234+})