anchor.diff:    preConfigure = ''
       perl mkfiles.pl
       ( cd doc ; make );
  +    sed '/AM_PATH_GTK(/d' -i unix/configure.ac
  +    sed '/AC_OUTPUT/iAM_PROG_CC_C_O' -i unix/configure.ac
  +    sed '/AC_OUTPUT/iAM_PROG_AR' -i unix/configure.ac
  +    ./mkauto.sh
       cd unix
  -    sed '/AM_PATH_GTK(/d' -i configure.ac
  -    cp ${automake}/share/automake-*/install-sh .
  -    autoreconf -vf
     '';
     
     # The hash is going to change on new snapshot.
  
positive.code: { stdenv, fetchsvn, ncurses, gtk, pkgconfig, autoconf, automake, perl, halibut }:
   
  let
    rev = 8934;
  in
  stdenv.mkDerivation {
    name = "putty-${toString rev}";
  
negative.code:   src = fetchsvn {
      url = svn://svn.tartarus.org/sgt/putty;
      rev = rev;
      sha256 = "e1fb49766e0724a12776ec3d6cd0bd420e03ebdc3383a01a12dbfd30983f81ef";
    };
  
    buildInputs = [ gtk ncurses pkgconfig autoconf automake perl halibut libtool ];
  }
  