depot/third_party/nixpkgs/pkgs/tools/networking/chisel/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

37 lines
1 KiB
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, stdenv
}:
buildGoModule rec {
pname = "chisel";
version = "1.7.6";
src = fetchFromGitHub {
owner = "jpillora";
repo = pname;
rev = "v${version}";
sha256 = "sha256-hUurgwbSUcNZiSi+eVTG/Ija/yxPeWuvEE5pUiG7Dls=";
};
vendorSha256 = "sha256-GzsQ6LXxe9UQc13XbsYFOWPe0EzlyHechchKc6xDkAc=";
buildFlagsArray = [ "-ldflags=-s -w -X github.com/jpillora/chisel/share.BuildVersion=${version}" ];
# 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 ];
};
}