Commit eaebf5d3 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

ligolo-ng: refactor

parent 9f434bd4
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
{ 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 ];
  };