@@ -0,0 +1,31 @@
1+{ lib, buildGoModule, fetchFromGitHub }:
2+
3+buildGoModule rec {
4+ pname = "ligolo-ng";
5+ version = "0.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "tnpitsecurity";
9+ repo = "ligolo-ng";
10+ rev = "v${version}";
11+ sha256 = "sha256-Ipfp+Ke4iSJmvUtfNUt/XSPTSDSdeMs+Ss8acZHUYrE=";
12+ };
13+
14+ postConfigure = ''
15+ export CGO_ENABLED=0
16+ '';
17+
18+ ldflags = [ "-s" "-w" "-extldflags '-static'" ];
19+
20+ vendorSha256 = "sha256-axRCThmFavR+GTRWSgdAr2mbrp07hsFea0rKLQNIhgU=";
21+
22+ doCheck = false; # tests require network access
23+
24+ meta = with lib; {
25+ homepage = "https://github.com/tnpitsecurity/ligolo-ng";
26+ description = "A tunneling/pivoting tool that uses a TUN interface";
27+ platforms = platforms.linux;
28+ license = licenses.gpl3Only;
29+ maintainers = with maintainers; [ elohmeier ];
30+ };
31+}