mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
ligolo-ng: refactor
This commit is contained in:
parent
9f434bd436
commit
eaebf5d3b6
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user