Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "chisel"; 9 version = "1.10.1"; 10 11 src = fetchFromGitHub { 12 owner = "jpillora"; 13 repo = "chisel"; 14 tag = "v${version}"; 15 hash = "sha256-b3r4D/P7D3kfIyMd1s/ntciY04qMrvSTru9+HjAOrnA="; 16 }; 17 18 vendorHash = "sha256-+11Pd/QCxoLLkeazmU9/vnPBaB2MZXmx4cEZRDnyRcQ="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X=github.com/jpillora/chisel/share.BuildVersion=${version}" 24 ]; 25 26 # Tests require access to the network 27 doCheck = false; 28 29 meta = { 30 description = "TCP/UDP tunnel over HTTP"; 31 longDescription = '' 32 Chisel is a fast TCP/UDP tunnel, transported over HTTP, secured via 33 SSH. Single executable including both client and server. Chisel is 34 mainly useful for passing through firewalls, though it can also be 35 used to provide a secure endpoint into your network. 36 ''; 37 homepage = "https://github.com/jpillora/chisel"; 38 changelog = "https://github.com/jpillora/chisel/releases/tag/v${version}"; 39 license = with lib.licenses; [ mit ]; 40 maintainers = with lib.maintainers; [ fab ]; 41 }; 42}