2021-10-06 13:57:05 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ligolo-ng";
|
2021-10-08 15:17:17 +00:00
|
|
|
version = "0.2";
|
2021-10-06 13:57:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tnpitsecurity";
|
|
|
|
repo = "ligolo-ng";
|
|
|
|
rev = "v${version}";
|
2021-10-08 15:17:17 +00:00
|
|
|
sha256 = "sha256-VzK6WykC3UDlhhyu8LMRHgOMkdEssJuh1Aqp0rGx7F4=";
|
2021-10-06 13:57:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-extldflags '-static'" ];
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
vendorSha256 = "sha256-ZRUy6gsl4Q2Sdm8Bfo4ANPdwcNQi5LNV6SbynpwfnOc=";
|
2021-10-06 13:57:05 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|