nixpkgs/pkgs/by-name/ne/netclient/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
820 B
Nix
Raw Normal View History

2023-07-18 17:30:46 +00:00
{ buildGoModule
, fetchFromGitHub
, lib
, libX11
, stdenv
, darwin
}:
buildGoModule rec {
pname = "netclient";
2024-01-20 00:03:40 +00:00
version = "0.22.0";
2023-07-18 17:30:46 +00:00
src = fetchFromGitHub {
owner = "gravitl";
repo = "netclient";
rev = "v${version}";
2024-01-20 00:03:40 +00:00
hash = "sha256-7raWk4Y/ZrSaGKPLrrnD49aDALkZ+Nxycd+px8Eks10=";
2023-07-18 17:30:46 +00:00
};
2024-01-20 00:03:40 +00:00
vendorHash = "sha256-lRXZ9iSWQEKWmeQV1ei/G4+HvqhW9U8yUv1Qb/d2jvY=";
2023-07-18 17:30:46 +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";
homepage = "https://netmaker.io";
changelog = "https://github.com/gravitl/netclient/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ wexder ];
};
}