9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
44 lines
911 B
Nix
44 lines
911 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, lib
|
|
, libglvnd
|
|
, pkg-config
|
|
, subPackages ? ["." "netclient"]
|
|
, xorg
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "netmaker";
|
|
version = "0.20.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gravitl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-S4j9JoY3e763Jw46nCfJYdmZd8Ryao5v/zSiP1Cz9Pc=";
|
|
};
|
|
|
|
vendorHash = "sha256-BkBS1Gd9aZFIc1bTujYn2694SvRMF3nNCBg5i1NRwns=";
|
|
|
|
inherit subPackages;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libglvnd
|
|
xorg.libX11
|
|
xorg.libXcursor
|
|
xorg.libXi
|
|
xorg.libXinerama
|
|
xorg.libXrandr
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "WireGuard automation from homelab to enterprise";
|
|
homepage = "https://netmaker.io";
|
|
changelog = "https://github.com/gravitl/netmaker/-/releases/v${version}";
|
|
license = licenses.sspl;
|
|
maintainers = with maintainers; [ urandom ];
|
|
};
|
|
}
|