diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix b/nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix new file mode 100644 index 000000000000..1f92fd0ce320 --- /dev/null +++ b/nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix @@ -0,0 +1,31 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "ligolo-ng"; + version = "0.2"; + + src = fetchFromGitHub { + owner = "tnpitsecurity"; + repo = "ligolo-ng"; + rev = "v${version}"; + sha256 = "sha256-VzK6WykC3UDlhhyu8LMRHgOMkdEssJuh1Aqp0rGx7F4="; + }; + + postConfigure = '' + export CGO_ENABLED=0 + ''; + + ldflags = [ "-s" "-w" "-extldflags '-static'" ]; + + vendorSha256 = "sha256-ZRUy6gsl4Q2Sdm8Bfo4ANPdwcNQi5LNV6SbynpwfnOc="; + + 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 ]; + }; +} |