2024-01-01 16:35:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-09-18 22:42:58 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ligolo-ng";
|
2024-07-06 01:27:36 +00:00
|
|
|
version = "0.6.2";
|
2021-09-18 22:42:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tnpitsecurity";
|
|
|
|
repo = "ligolo-ng";
|
2024-01-01 16:35:01 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-06 01:27:36 +00:00
|
|
|
hash = "sha256-TNIAin4W3pBNl9Id0zFeEDTT0B2PCS29q7csekkZ4CQ=";
|
2021-09-18 22:42:58 +00:00
|
|
|
};
|
|
|
|
|
2024-06-23 01:57:52 +00:00
|
|
|
vendorHash = "sha256-LqoWkhEnsKTz384dhqNKmZrG38NHxaFx4k7zjHj51Ys=";
|
2023-08-16 09:29:33 +00:00
|
|
|
|
2021-09-18 22:42:58 +00:00
|
|
|
postConfigure = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
'';
|
|
|
|
|
2024-01-01 16:35:01 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-extldflags '-static'"
|
|
|
|
];
|
2021-09-18 22:42:58 +00:00
|
|
|
|
2024-01-01 16:35:01 +00:00
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
2021-09-18 22:42:58 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tunneling/pivoting tool that uses a TUN interface";
|
2024-01-01 16:35:01 +00:00
|
|
|
homepage = "https://github.com/tnpitsecurity/ligolo-ng";
|
|
|
|
changelog = "https://github.com/nicocha30/ligolo-ng/releases/tag/v${version}";
|
2021-09-18 22:42:58 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
};
|
|
|
|
}
|