mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
0109e11774
Diff: https://github.com/jpillora/chisel/compare/refs/tags/v1.9.0...v1.9.1 Changelog: https://github.com/jpillora/chisel/releases/tag/v1.9.1
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "chisel";
|
|
version = "1.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jpillora";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-hZm0dVDwX6cHiN0TvAcHCWbMAf+k9CCQfC9nlV2vfN4=";
|
|
};
|
|
|
|
vendorHash = "sha256-i6Fb+jSP6LzZoPTHhjQi3YbPBWY6OmsORV8ATcLrHG0=";
|
|
|
|
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";
|
|
changelog = "https://github.com/jpillora/chisel/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|