mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
35 lines
820 B
Nix
35 lines
820 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, libX11
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "netclient";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gravitl";
|
|
repo = "netclient";
|
|
rev = "v${version}";
|
|
hash = "sha256-7raWk4Y/ZrSaGKPLrrnD49aDALkZ+Nxycd+px8Eks10=";
|
|
};
|
|
|
|
vendorHash = "sha256-lRXZ9iSWQEKWmeQV1ei/G4+HvqhW9U8yUv1Qb/d2jvY=";
|
|
|
|
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 ];
|
|
};
|
|
}
|