43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "chisel";
|
|
version = "1.11.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jpillora";
|
|
repo = "chisel";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-hhkauBn8yEnUmHQjgSF8LMM7zEwhIRRPIkx5VhVZCTI=";
|
|
};
|
|
|
|
vendorHash = "sha256-wt6d6yNi4QRI/RQiemfOAbc6FG8sBexWFT1dKOmFEes=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/jpillora/chisel/share.BuildVersion=${finalAttrs.version}"
|
|
];
|
|
|
|
# Tests require access to the network
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
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";
|
|
changelog = "https://github.com/jpillora/chisel/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|