nixpkgs/pkgs/by-name/ne/netclient/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

36 lines
851 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, libX11
, stdenv
, darwin
}:
buildGoModule rec {
pname = "netclient";
version = "0.23.0";
src = fetchFromGitHub {
owner = "gravitl";
repo = "netclient";
rev = "v${version}";
hash = "sha256-Wglh6tcpanEmXwoRKdAot/l4RS+EbIIHI1etQ9ic7BI=";
};
vendorHash = "sha256-or/0z+RiOkZ2qgEqXNI/LafN+eWAzvLuSZta/QNUI3g=";
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";
mainProgram = "netclient";
homepage = "https://netmaker.io";
changelog = "https://github.com/gravitl/netclient/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ wexder ];
};
}