diff options
author | Christian Lütke-Stetzkamp <christian@lkamp.de> | 2020-03-06 12:44:34 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-03-17 11:44:17 -0700 |
commit | 403a4b1cedfa816295d133dec9036d2c579b4f33 (patch) | |
tree | 89dbde16082dc971feacd93968120654031dd867 /pkgs/tools/networking/http2tcp | |
parent | 93919c66a844fb7f5cbdfa252f18e40f5bfeab89 (diff) | |
download | nixpkgs-403a4b1cedfa816295d133dec9036d2c579b4f33.tar nixpkgs-403a4b1cedfa816295d133dec9036d2c579b4f33.tar.gz nixpkgs-403a4b1cedfa816295d133dec9036d2c579b4f33.tar.bz2 nixpkgs-403a4b1cedfa816295d133dec9036d2c579b4f33.tar.lz nixpkgs-403a4b1cedfa816295d133dec9036d2c579b4f33.tar.xz nixpkgs-403a4b1cedfa816295d133dec9036d2c579b4f33.tar.zst nixpkgs-403a4b1cedfa816295d133dec9036d2c579b4f33.zip |
http2tcp: init at 0.5
Diffstat (limited to 'pkgs/tools/networking/http2tcp')
-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 00000000000..b1f3c704b1f --- /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; + }; +} |