From 9d6f5f79e4707bb03770ea6d1053916ff69caecb Mon Sep 17 00:00:00 2001 From: Jack Cummings Date: Wed, 28 Nov 2012 14:29:11 -0800 Subject: [PATCH] Add 'connect' for traversing SOCKS proxies --- pkgs/tools/networking/connect/default.nix | 33 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/networking/connect/default.nix diff --git a/pkgs/tools/networking/connect/default.nix b/pkgs/tools/networking/connect/default.nix new file mode 100644 index 000000000000..67f2b63c2928 --- /dev/null +++ b/pkgs/tools/networking/connect/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "connect-1.95"; + + src = fetchurl { + url = http://savannah.gnu.org/maintenance/connect.c; + sha256 = "11dx07pcanwaq71g4xh8d4blr5j7iy0ilmb0fkgpj8p22blb74mf"; + }; + + phases = "unpackPhase buildPhase fixupPhase"; + + unpackPhase = '' + cp $src connect.c + ''; + + buildPhase = '' + ensureDir $out/bin + gcc -o $out/bin/connect connect.c + ''; + + meta = { + description = "make network connection via SOCKS and https proxy."; + longDescription = '' + 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 + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.gnu; + maintainers = with stdenv.lib.maintainers; [ jcumming ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 73510e639e06..c088cada25a6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -538,6 +538,8 @@ let colordiff = callPackage ../tools/text/colordiff { }; + connect = callPackage ../tools/networking/connect { }; + convertlit = callPackage ../tools/text/convertlit { }; cowsay = callPackage ../tools/misc/cowsay { };