diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-03-24 01:51:13 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-03-24 01:51:13 +0100 |
commit | cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4 (patch) | |
tree | 6534f00bf85774daac26bb0d592f370ee9fb59b7 /pkgs/tools/networking/http2tcp/default.nix | |
parent | 9fd82b3e7e99678dab327332bcffec4aad01d22b (diff) | |
parent | 0bfd0187dafe3f597355e6be16b7b9a5f4b90376 (diff) | |
download | nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.gz nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.bz2 nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.lz nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.xz nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.zst nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.zip |
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/tools/networking/http2tcp/default.nix')
-rw-r--r-- | pkgs/tools/networking/http2tcp/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/networking/http2tcp/default.nix b/pkgs/tools/networking/http2tcp/default.nix new file mode 100644 index 000000000000..b1f3c704b1fa --- /dev/null +++ b/pkgs/tools/networking/http2tcp/default.nix @@ -0,0 +1,47 @@ +{ lib +, python3 +, stdenv +, fetchurl +}: + +stdenv.mkDerivation rec { + pname = "http2tcp"; + version = "0.5"; + + src = fetchurl { + url = "https://www.linta.de/~aehlig/http2tcp/${pname}-${version}.tar.gz"; + sha256 = "34fb83c091689dee398ca80db76487e0c39abb17cef390d845ffd888009a5caa"; + }; + + buildInputs = [ + (python3.withPackages (ps: [ + ps.wsgitools + ])) + ]; + + dontBuild = true; + + installPhase = '' + mkdir -p $out/{bin,share/${pname}} + cp http2tcp* $out/bin + cp Protocol $out/share/${pname}/ + ''; + + meta = with lib; { + maintainers = with maintainers; [ clkamp ]; + description = "A tool for tunneling TCP connections via HTTP GET requests"; + longDescription = '' + The http2tcp tools allow to tunnel tcp connections (presumably + ssh) via syntactically correct http requests. It is designed to + work in the presence of so-called "transparent" + store-and-forward proxies disallowing POST requests. + + It also turned out to be useful to stabilise connections where + the client's internet connection is unreliable (frequent long + network outages, rapidly changing IP address, etc). + ''; + homepage = "https://www.linta.de/~aehlig/http2tcp/"; + license = licenses.bsd3; + platforms = platforms.all; + }; +} |