nixpkgs/pkgs/tools/networking/chisel/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-01-28 17:06:27 +01:00
{ lib
, buildGoModule
2021-01-11 22:41:25 +01:00
, fetchFromGitHub
}:
buildGoModule rec {
pname = "chisel";
version = "1.9.1";
2021-01-11 22:41:25 +01:00
src = fetchFromGitHub {
owner = "jpillora";
repo = pname;
2023-01-28 17:06:27 +01:00
rev = "refs/tags/v${version}";
hash = "sha256-hZm0dVDwX6cHiN0TvAcHCWbMAf+k9CCQfC9nlV2vfN4=";
2021-01-11 22:41:25 +01:00
};
vendorHash = "sha256-i6Fb+jSP6LzZoPTHhjQi3YbPBWY6OmsORV8ATcLrHG0=";
2021-01-11 22:41:25 +01:00
2023-01-28 17:06:27 +01:00
ldflags = [
"-s"
"-w"
"-X=github.com/jpillora/chisel/share.BuildVersion=${version}"
2023-01-28 17:06:27 +01:00
];
2021-02-01 11:53:39 +01:00
2023-01-28 17:06:27 +01:00
# Tests require access to the network
2021-01-11 22:41:25 +01: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-01-28 17:06:27 +01:00
changelog = "https://github.com/jpillora/chisel/releases/tag/v${version}";
2021-01-11 22:41:25 +01:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}