nixpkgs/pkgs/by-name/ht/http2tcp/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

49 lines
1.3 KiB
Nix

{
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 = "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;
};
}