2023-10-09 19:29:22 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, libX11
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "netclient";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.24.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gravitl";
|
|
|
|
repo = "netclient";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-p7cPOPmD/13Mvp0aHRDj3MXfkiaimqrTeg9D7bRU3AM=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-mxDhjvNrV4oMHKHQHaxg35Tn30czmjGD3MTRh/Dexv4=";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa
|
|
|
|
++ lib.optional stdenv.isLinux libX11;
|
|
|
|
|
|
|
|
hardeningEnabled = [ "pie" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Automated WireGuard® Management Client";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "netclient";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://netmaker.io";
|
|
|
|
changelog = "https://github.com/gravitl/netclient/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ wexder ];
|
|
|
|
};
|
|
|
|
}
|