diff options
author | Domen Kožar <domen@dev.si> | 2013-10-05 16:45:51 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2013-10-05 16:46:56 +0200 |
commit | f82cfef944df724814c9d9264bc102fd0850ca6e (patch) | |
tree | 5816b879ac630432d5c7b638b6ec5f68251081fe /pkgs/tools/security/sshuttle | |
parent | 4c7796e4a30178037210e90414103ab43c80f36a (diff) |
add sshuttle: Transparent proxy server that works as a poor man's VPN
Diffstat (limited to 'pkgs/tools/security/sshuttle')
-rw-r--r-- | pkgs/tools/security/sshuttle/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/security/sshuttle/default.nix b/pkgs/tools/security/sshuttle/default.nix new file mode 100644 index 0000000000000..61ba63862afa9 --- /dev/null +++ b/pkgs/tools/security/sshuttle/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, iptables, python, pythonPackages }: + +stdenv.mkDerivation rec { + name = "sshuttle-${version}"; + version = "0.61"; + + src = fetchurl { + url = "https://github.com/apenwarr/sshuttle/archive/sshuttle-0.61.tar.gz"; + sha256 = "1v2v1kbwnmx6ygzhbgqcmyafx914s2p7vjp7l0pf52sa7qkliy9b"; + }; + + preBuild = '' + substituteInPlace Documentation/all.do --replace "/bin/ls" "$(type -tP ls)"; + substituteInPlace Documentation/md2man.py --replace "/usr/bin/env python" "${python}/bin/python" + ''; + + phases = "unpackPhase installPhase"; + + installPhase = '' + mkdir -p $out/bin + cp -R . $out + ln -s $out/sshuttle $out/bin/sshuttle + ''; + + + buildInputs = [ iptables python pythonPackages.markdown pythonPackages.beautifulsoup ]; + + meta = with stdenv.lib; { + homepage = https://github.com/apenwarr/sshuttle; + description = "Transparent proxy server that works as a poor man's VPN"; + maintainers = with maintainers; [ iElectric ]; + platforms = platforms.unix; + }; +} |