2023-01-11 07:51:40 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, lib
|
|
|
|
, libglvnd
|
|
|
|
, pkg-config
|
|
|
|
, subPackages ? ["." "netclient"]
|
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "netmaker";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.23.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gravitl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-M2DY+C0g8G+DjicMeT3Ojn4GzG7vaE1OHKSy7O6T1Kk=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-SUu0OvHCmlssH9HbAaMbiG0gF/ezxgf1n0HBiB/2PTs=";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
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}";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.asl20;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ urandom qjoly ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "netmaker";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
}
|