at 23.05-pre 36 lines 1.0 kB view raw
1{ buildGoModule 2, fetchFromGitHub 3, lib 4}: 5 6buildGoModule rec { 7 pname = "chisel"; 8 version = "1.7.7"; 9 10 src = fetchFromGitHub { 11 owner = "jpillora"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-3EaVUGcwkJWX0FxIaHddUehJIdbxAPfBm8esXKCUuhM="; 15 }; 16 17 vendorSha256 = "sha256-Oko9nduKW76NIUCVyF0lPzEH+TFT1el9VGIbm5lQXtM="; 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}