2021-09-18 23:42:58 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ligolo-ng";
|
2022-02-12 13:47:27 +00:00
|
|
|
version = "0.3.2";
|
2021-09-18 23:42:58 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tnpitsecurity";
|
|
|
|
repo = "ligolo-ng";
|
|
|
|
rev = "v${version}";
|
2022-02-12 13:47:27 +00:00
|
|
|
sha256 = "sha256-4VUzKTzeFC04c93PCnBnEoEoBDCyMg00uznv7ZOr+uY=";
|
2021-09-18 23:42:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-extldflags '-static'" ];
|
|
|
|
|
2022-02-12 13:47:27 +00:00
|
|
|
vendorSha256 = "sha256-BoAEmgN+ufzT1vp7mzPzYcfdXKJVWaZq/fzA90e+z8M=";
|
2021-09-18 23:42:58 +01:00
|
|
|
|
|
|
|
doCheck = false; # tests require network access
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tnpitsecurity/ligolo-ng";
|
|
|
|
description = "A tunneling/pivoting tool that uses a TUN interface";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|