35 lines
820 B
Nix
35 lines
820 B
Nix
|
{ buildGoModule
|
||
|
, fetchFromGitHub
|
||
|
, lib
|
||
|
, libX11
|
||
|
, stdenv
|
||
|
, darwin
|
||
|
}:
|
||
|
|
||
|
buildGoModule rec {
|
||
|
pname = "netclient";
|
||
|
version = "0.21.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "gravitl";
|
||
|
repo = "netclient";
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-68/BmVoAFaIg4vgjzhedSBqm6H9VDu3M7JemfPEcpjQ=";
|
||
|
};
|
||
|
|
||
|
vendorHash = "sha256-CsW4tW6+INw93A7uXtHeVnxRrE5unHXhm2SOmQkJwYA=";
|
||
|
|
||
|
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";
|
||
|
homepage = "https://netmaker.io";
|
||
|
changelog = "https://github.com/gravitl/netclient/releases/tag/v${version}";
|
||
|
license = licenses.asl20;
|
||
|
maintainers = with maintainers; [ wexder ];
|
||
|
};
|
||
|
}
|