1{ buildGoModule
2, fetchFromGitHub
3, lib
4}:
5
6buildGoModule rec {
7 pname = "chisel";
8 version = "1.7.6";
9
10 src = fetchFromGitHub {
11 owner = "jpillora";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "sha256-hUurgwbSUcNZiSi+eVTG/Ija/yxPeWuvEE5pUiG7Dls=";
15 };
16
17 vendorSha256 = "sha256-GzsQ6LXxe9UQc13XbsYFOWPe0EzlyHechchKc6xDkAc=";
18
19 ldflags = [ "-s" "-w" "-X github.com/jpillora/chisel/share.BuildVersion=${version}" ];
20
21 # tests require access to the network
22 doCheck = false;
23
24 meta = with lib; {
25 description = "TCP/UDP tunnel over HTTP";
26 longDescription = ''
27 Chisel is a fast TCP/UDP tunnel, transported over HTTP, secured via
28 SSH. Single executable including both client and server. Chisel is
29 mainly useful for passing through firewalls, though it can also be
30 used to provide a secure endpoint into your network.
31 '';
32 homepage = "https://github.com/jpillora/chisel";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ fab ];
35 };
36}