anchor.diff:          for p in "$@"; do cp "$p" -r $out/${targetPluginDir}/${name}; done
         }
       '';
  +
  +    # Override installation paths.
  +    PKG_CONFIG_GIMP_2_0_GIMPLIBDIR = "${placeholder "out"}/${gimp.targetLibDir}";
  +    PKG_CONFIG_GIMP_2_0_GIMPDATADIR = "${placeholder "out"}/${gimp.targetDataDir}";
     }
  -  // a
  +  // attrs
     // {
         name = "gimp-plugin-${name}";
  -      buildInputs = [ gimp gimp.gtk glib ] ++ (a.buildInputs or []);
  -      nativeBuildInputs = [ pkgconfig intltool ] ++ (a.nativeBuildInputs or []);
  +      buildInputs = [ gimp gimp.gtk glib ] ++ (attrs.buildInputs or []);
  +      nativeBuildInputs = [ pkgconfig intltool ] ++ (attrs.nativeBuildInputs or []);
       }
     );
   
  
positive.code:       sha256 = "1jic7ixcmsn4kx2cn32nc5087rk6g8xsrz022xy11yfmgvhzb0ql";
      };
      NIX_LDFLAGS = "-lm";
      patchPhase = ''
        sed -e 's,^\(GIMP_PLUGIN_DIR=\).*,\1'"$out/${gimp.name}-plugins", \
         -e 's,^\(GIMP_DATA_DIR=\).*,\1'"$out/share/${gimp.name}", -i configure
      '';
      hardeningDisable = [ "format" ];
      meta = with stdenv.lib; {
        description = "The GIMP Animation Package";
  
negative.code:     version = "2.0.3";
      buildInputs = with pkgs; [ fftw ];
      nativeBuildInputs = with pkgs; [ autoreconfHook ];
      makeFlags = [ "GIMP_LIBDIR=${placeholder "out"}/${gimp.targetLibDir}" ];
      src = fetchFromGitHub {
        owner = "bootchk";
        repo = "resynthesizer";
  