2021-01-11 21:41:25 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "chisel";
|
2021-02-18 21:34:01 +00:00
|
|
|
version = "1.7.6";
|
2021-01-11 21:41:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jpillora";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-18 21:34:01 +00:00
|
|
|
sha256 = "sha256-hUurgwbSUcNZiSi+eVTG/Ija/yxPeWuvEE5pUiG7Dls=";
|
2021-01-11 21:41:25 +00:00
|
|
|
};
|
|
|
|
|
2021-01-28 23:12:35 +00:00
|
|
|
vendorSha256 = "sha256-GzsQ6LXxe9UQc13XbsYFOWPe0EzlyHechchKc6xDkAc=";
|
2021-01-11 21:41:25 +00:00
|
|
|
|
2021-02-01 10:53:39 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/jpillora/chisel/share.BuildVersion=${version}" ];
|
|
|
|
|
2021-01-11 21:41:25 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|