From a1d6716252ff73d2738bbc91fccf0c3ba60a1461 Mon Sep 17 00:00:00 2001 From: Renaud Date: Sat, 21 Oct 2017 18:15:47 +0200 Subject: [PATCH] putty: 0.67 -> 0.70 + use stable src URL and add a mirror --- .../networking/remote/putty/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/remote/putty/default.nix b/pkgs/applications/networking/remote/putty/default.nix index 6b765a0c9f1..4c1ddcef5cc 100644 --- a/pkgs/applications/networking/remote/putty/default.nix +++ b/pkgs/applications/networking/remote/putty/default.nix @@ -1,12 +1,16 @@ -{ stdenv, fetchurl, ncurses, gtk2, pkgconfig, autoconf, automake, perl, halibut, libtool }: +{ stdenv, fetchurl, autoconf, automake, pkgconfig, libtool +, gtk2, halibut, ncurses, perl }: stdenv.mkDerivation rec { - version = "0.67"; + version = "0.70"; name = "putty-${version}"; src = fetchurl { - url = "http://the.earth.li/~sgtatham/putty/latest/${name}.tar.gz"; - sha256 = "0isak6dy5vmfzf9ckcq6jvhgrn3xfmfcmziaa7g2jqm4x1c286c0"; + urls = [ + "https://the.earth.li/~sgtatham/putty/${version}/${name}.tar.gz" + "ftp://ftp.wayne.edu/putty/putty-website-mirror/${version}/${name}.tar.gz" + ]; + sha256 = "1gmhwwj1y7b5hgkrkxpf4jddjpk9l5832zq5ibhsiicndsfs92mv"; }; preConfigure = '' @@ -19,8 +23,9 @@ stdenv.mkDerivation rec { cd unix ''; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ gtk2 ncurses autoconf automake perl halibut libtool ]; + nativeBuildInputs = [ autoconf automake halibut libtool perl pkgconfig ]; + buildInputs = [ gtk2 ncurses ]; + enableParallelBuilding = true; meta = with stdenv.lib; { description = "A Free Telnet/SSH Client";