depot/third_party/nixpkgs/pkgs/tools/networking/ligolo-ng/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

39 lines
867 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ligolo-ng";
version = "0.5.1";
src = fetchFromGitHub {
owner = "tnpitsecurity";
repo = "ligolo-ng";
rev = "refs/tags/v${version}";
hash = "sha256-tx/iwb7eaaJODPMJhg4EdLMaua2Bm1frZh4rsl1bFxc=";
};
vendorHash = "sha256-QEGF12yJ+CQjIHx6kOwsykVhelp5npnglk7mIbOeIpI=";
postConfigure = ''
export CGO_ENABLED=0
'';
ldflags = [
"-s"
"-w"
"-extldflags '-static'"
];
# Tests require network access
doCheck = false;
meta = with lib; {
description = "A tunneling/pivoting tool that uses a TUN interface";
homepage = "https://github.com/tnpitsecurity/ligolo-ng";
changelog = "https://github.com/nicocha30/ligolo-ng/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ elohmeier ];
};
}