nixpkgs-suyu/pkgs/tools/networking/chisel/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1,018 B
Nix
Raw Normal View History

2021-01-11 22:41:25 +01:00
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "chisel";
2022-02-01 20:57:05 +01:00
version = "1.7.7";
2021-01-11 22:41:25 +01:00
src = fetchFromGitHub {
owner = "jpillora";
repo = pname;
rev = "v${version}";
2022-02-01 20:57:05 +01:00
sha256 = "sha256-3EaVUGcwkJWX0FxIaHddUehJIdbxAPfBm8esXKCUuhM=";
2021-01-11 22:41:25 +01:00
};
2022-02-01 20:57:05 +01:00
vendorSha256 = "sha256-Oko9nduKW76NIUCVyF0lPzEH+TFT1el9VGIbm5lQXtM=";
2021-01-11 22:41:25 +01:00
2021-08-26 08:45:51 +02:00
ldflags = [ "-s" "-w" "-X github.com/jpillora/chisel/share.BuildVersion=${version}" ];
2021-02-01 11:53:39 +01:00
2021-01-11 22:41:25 +01:00
# tests require access to the network
doCheck = false;
meta = with lib; {
description = "TCP/UDP tunnel over HTTP";
longDescription = ''
Chisel is a fast TCP/UDP tunnel, transported over HTTP, secured via
SSH. Single executable including both client and server. Chisel is
mainly useful for passing through firewalls, though it can also be
used to provide a secure endpoint into your network.
'';
homepage = "https://github.com/jpillora/chisel";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}