nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
793 B
Nix
Raw Normal View History

2021-09-18 22:42:58 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "ligolo-ng";
2022-07-28 22:50:29 +00:00
version = "0.3.3";
2021-09-18 22:42:58 +00:00
src = fetchFromGitHub {
owner = "tnpitsecurity";
repo = "ligolo-ng";
rev = "v${version}";
2022-07-28 22:50:29 +00:00
sha256 = "sha256-KXyvoHtPC71QkB+X6cRCBxAUcTuy+j8/ZAJe7n6EdGc=";
2021-09-18 22:42:58 +00:00
};
postConfigure = ''
export CGO_ENABLED=0
'';
ldflags = [ "-s" "-w" "-extldflags '-static'" ];
2022-07-28 22:50:29 +00:00
vendorSha256 = "sha256-dzHdPgOjYXSozDxehkVNQocsYdH0u0p80c1THUzedk8=";
2021-09-18 22:42:58 +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 ];
};
}