depot/third_party/nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix
Default email 5e2a688410 Project import generated by Copybara.
GitOrigin-RevId: 5e2018f7b383aeca6824a30c0cd1978c9532a46a
2021-10-06 10:57:05 -03:00

31 lines
791 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "ligolo-ng";
version = "0.1";
src = fetchFromGitHub {
owner = "tnpitsecurity";
repo = "ligolo-ng";
rev = "v${version}";
sha256 = "sha256-Ipfp+Ke4iSJmvUtfNUt/XSPTSDSdeMs+Ss8acZHUYrE=";
};
postConfigure = ''
export CGO_ENABLED=0
'';
ldflags = [ "-s" "-w" "-extldflags '-static'" ];
vendorSha256 = "sha256-axRCThmFavR+GTRWSgdAr2mbrp07hsFea0rKLQNIhgU=";
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 ];
};
}