Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 buildGoModule,
3 fetchFromGitHub,
4 lib,
5 libX11,
6 stdenv,
7}:
8
9buildGoModule rec {
10 pname = "netclient";
11 version = "1.0.0";
12
13 src = fetchFromGitHub {
14 owner = "gravitl";
15 repo = "netclient";
16 rev = "v${version}";
17 hash = "sha256-65U0cQpunLecvw7dZfBY4dFoj8Jp6+LqUWcCDfS0eSA=";
18 };
19
20 vendorHash = "sha256-XF2OVgK5OrIrKqamY20lm49OF3u3RvxcW4TTtPkr5YU=";
21
22 buildInputs = lib.optional stdenv.hostPlatform.isLinux libX11;
23
24 hardeningEnabled = [ "pie" ];
25
26 meta = {
27 description = "Automated WireGuard® Management Client";
28 mainProgram = "netclient";
29 homepage = "https://netmaker.io";
30 changelog = "https://github.com/gravitl/netclient/releases/tag/v${version}";
31 license = lib.licenses.asl20;
32 maintainers = with lib.maintainers; [ wexder ];
33 };
34}