From a6f35b3e600a94dd35ea54bdc43e992513086e93 Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Tue, 23 Dec 2014 09:07:39 -0600 Subject: [PATCH] connect 1.104 Upstream moved to https://bitbucket.org/gotoh/connect --- pkgs/tools/networking/connect/default.nix | 25 +++++++++++------------ 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/networking/connect/default.nix b/pkgs/tools/networking/connect/default.nix index 8723c53c3229..5ccbc8d0cae1 100644 --- a/pkgs/tools/networking/connect/default.nix +++ b/pkgs/tools/networking/connect/default.nix @@ -1,22 +1,21 @@ { stdenv, fetchurl }: -stdenv.mkDerivation rec { - name = "connect-1.95"; +let + + version = "1.104"; + +in stdenv.mkDerivation { + name = "connect-${version}"; src = fetchurl { - url = http://savannah.gnu.org/maintenance/connect.c; - sha256 = "11dx07pcanwaq71g4xh8d4blr5j7iy0ilmb0fkgpj8p22blb74mf"; + url = "https://bitbucket.org/gotoh/connect/get/${version}.tar.bz2"; + sha256 = "0h7bfh1b2kcw5ddpbif57phdxpf8if0cm01pgwc6avp6dqxcsqp2"; }; - phases = "unpackPhase buildPhase fixupPhase"; + makeFlags = [ "CC=cc" ]; # gcc and/or clang compat - unpackPhase = '' - cp $src connect.c - ''; - - buildPhase = '' - mkdir -p $out/bin - gcc -o $out/bin/connect connect.c + installPhase = '' + install -D -m ugo=rx connect $out/bin/connect ''; meta = { @@ -25,7 +24,7 @@ stdenv.mkDerivation rec { This proxy traversal tool is intended to assist OpenSSH (via ProxyCommand in ~/.ssh/config) and GIT (via $GIT_PROXY_COMMAND) utilize SOCKS and https proxies. ''; - homepage = http://bent.latency.net/bent/git/goto-san-connect-1.85/src/connect.html; # source URL is busted there + homepage = https://bitbucket.org/gotoh/connect/wiki/Home; license = stdenv.lib.licenses.gpl2Plus; platforms = stdenv.lib.platforms.gnu; maintainers = with stdenv.lib.maintainers; [ jcumming ];