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-02-29 20:09:43 +00:00
|
|
|
version = "0.5.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-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-pFk/9AFtnMBNi5hdVWDzfxCTFe9wSkFydHciTpMRxQw=";
|
2021-10-06 13:57:05 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-QEGF12yJ+CQjIHx6kOwsykVhelp5npnglk7mIbOeIpI=";
|
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; {
|
|
|
|
description = "A 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;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|