@@ -5,7 +5,7 @@
55
66{ pkgs, gimp }:
77let
8− inherit (pkgs) stdenv fetchurl pkgconfig glib;
8+ inherit (pkgs) stdenv fetchurl pkgconfig glib fetchFromGitHub;
99 inherit (gimp) targetPluginDir targetScriptDir;
1010
1111 pluginDerivation = a: stdenv.mkDerivation ({
@@ -116,6 +116,25 @@ rec {
116116 ";
117117 };
118118
119+ resynthesizer2 = pluginDerivation {
120+ /* menu:
121+ Filters/Map/Resynthesize
122+ Filters/Enhance/Smart enlarge
123+ Filters/Enhance/Smart sharpen
124+ Filters/Enhance/Smart remove selection
125+ */
126+ name = "resynthesizer-2.0.1";
127+ buildInputs = [ gimp pkgs.fftw pkgs.autoreconfHook ]
128+ ++ gimp.nativeBuildInputs;
129+ makeFlags = "GIMP_LIBDIR=$out/lib/gimp/2.0/";
130+ src = fetchFromGitHub {
131+ owner = "bootchk";
132+ repo = "resynthesizer";
133+ rev = "2.0.1";
134+ sha256 = "1d214s0jsqxz83l9dd8vhnz3siw9fyw7xdhhir25ra7jiwxc99hd";
135+ };
136+ };
137+
119138 texturize = pluginDerivation {
120139 name = "texturize-2.1";
121140 buildInputs = [ gimp ] ++ gimp.nativeBuildInputs;