ligolo-ng: refactor

This commit is contained in:
Fabian Affolter 2024-01-01 17:35:01 +01:00
parent 9f434bd436
commit eaebf5d3b6

View File

@ -1,4 +1,7 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ligolo-ng";
@ -7,7 +10,7 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "tnpitsecurity";
repo = "ligolo-ng";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-T+SBGAE+hzHzrYLTm6t7NGh78B1/84TMiT1odGSPtKo=";
};
@ -17,13 +20,19 @@ buildGoModule rec {
export CGO_ENABLED=0
'';
ldflags = [ "-s" "-w" "-extldflags '-static'" ];
ldflags = [
"-s"
"-w"
"-extldflags '-static'"
];
doCheck = false; # tests require network access
# Tests require network access
doCheck = false;
meta = with lib; {
homepage = "https://github.com/tnpitsecurity/ligolo-ng";
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 ];
};