2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "chisel";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.10.1";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jpillora";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-b3r4D/P7D3kfIyMd1s/ntciY04qMrvSTru9+HjAOrnA=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-+11Pd/QCxoLLkeazmU9/vnPBaB2MZXmx4cEZRDnyRcQ=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-08-22 20:05:09 +00:00
|
|
|
"-X=github.com/jpillora/chisel/share.BuildVersion=${version}"
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# Tests require access to the network
|
2021-02-05 17:12:51 +00:00
|
|
|
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";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/jpillora/chisel/releases/tag/v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|