diff --git a/pkgs/applications/networking/remote/putty/builder.sh b/pkgs/applications/networking/remote/putty/builder.sh deleted file mode 100755 index 8b7da0a84e41..000000000000 --- a/pkgs/applications/networking/remote/putty/builder.sh +++ /dev/null @@ -1,12 +0,0 @@ -source $stdenv/setup - -tar zxvf $src -cd putty-*/unix/ - -ensureDir $out/bin -ensureDir $out/share/man/man1 - -./configure --prefix=$out --with-gtk-prefix=$gtk -make -make install - diff --git a/pkgs/applications/networking/remote/putty/default.nix b/pkgs/applications/networking/remote/putty/default.nix index 402b5a520f45..747413400b39 100644 --- a/pkgs/applications/networking/remote/putty/default.nix +++ b/pkgs/applications/networking/remote/putty/default.nix @@ -1,22 +1,25 @@ -{ stdenv, fetchurl, ncurses -, gtk -}: +{ stdenv, fetchsvn, ncurses, gtk, pkgconfig, autoconf, automake, perl, halibut }: stdenv.mkDerivation { - name = "putty-0.60"; - builder = ./builder.sh; + name = "putty-r8934"; + # builder = ./builder.sh; + + preConfigure = '' + perl mkfiles.pl + ( cd doc ; make ); + cd unix + sed '/AM_PATH_GTK(/d' -i configure.ac + cp ${automake}/share/automake-*/install-sh . + autoreconf -vf + ''; - src = fetchurl { - url = http://the.earth.li/~sgtatham/putty/latest/putty-0.60.tar.gz; - sha256 = "b2bbaaf9324997e85cf15d44ed41e8e89539c8215dceac9d6d7272a37dbc2849"; + # The hash is going to change on new snapshot. + # I don't know of any better URL + src = fetchsvn { + url = svn://svn.tartarus.org/sgt/putty; + rev = 8934; + sha256 = "1yg5jhk7jp4yrnhpi0lvz71qqaf5gfpcwy8p198qqs8xgd1w51jc"; }; - buildInputs = [ - gtk ncurses - ]; - - #propagatedBuildInputs = [ - #]; - - inherit gtk; + buildInputs = [ gtk ncurses pkgconfig autoconf automake perl halibut ]; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 46326db274b8..4949b3d8656f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9433,8 +9433,8 @@ let }; putty = import ../applications/networking/remote/putty { - inherit stdenv fetchurl ncurses; - inherit (gtkLibs1x) gtk; + inherit stdenv fetchsvn ncurses pkgconfig autoconf automake perl halibut; + inherit (gtkLibs) gtk; }; rssglx = import ../misc/screensavers/rss-glx {