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