51 lines
965 B
Nix
51 lines
965 B
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
libglvnd,
|
|
pkg-config,
|
|
subPackages ? [
|
|
"."
|
|
"netclient"
|
|
],
|
|
xorg,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "netmaker";
|
|
version = "0.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gravitl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Z2omesoEB6lJFy8ph6CFTb6XWsdgsvEG+i49dXmaC0Y=";
|
|
};
|
|
|
|
vendorHash = "sha256-PYkjJ17hS0E0ncsUdrGWRn+3dEwZxS1nD0UjSDQflQ8=";
|
|
|
|
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.asl20;
|
|
maintainers = with maintainers; [
|
|
urandom
|
|
qjoly
|
|
];
|
|
mainProgram = "netmaker";
|
|
};
|
|
}
|