2023-01-06 00:03:35 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, libglvnd
|
|
|
|
, pkg-config
|
|
|
|
, subPackages ? ["." "netclient"]
|
|
|
|
, xorg
|
|
|
|
}:
|
2022-12-26 05:23:03 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "netmaker";
|
2024-11-08 19:42:07 +00:00
|
|
|
version = "0.26.0";
|
2022-12-26 05:23:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gravitl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-11-08 19:42:07 +00:00
|
|
|
hash = "sha256-f6R7Dc5M3MUjsCXvQAqamU9FFuqYEZoxYKwKhk4ilPc=";
|
2022-12-26 05:23:03 +00:00
|
|
|
};
|
|
|
|
|
2024-11-08 19:42:07 +00:00
|
|
|
vendorHash = "sha256-g9JyIuqYJZK47xQYM0+d1hcHcNBGLH3lW60hI6UkD84=";
|
2022-12-26 05:23:03 +00:00
|
|
|
|
2023-01-06 00:03:35 +00:00
|
|
|
inherit subPackages;
|
2022-12-26 05:23:03 +00:00
|
|
|
|
|
|
|
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}";
|
2023-11-20 15:30:39 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-24 10:07:34 +00:00
|
|
|
maintainers = with maintainers; [ urandom qjoly ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "netmaker";
|
2022-12-26 05:23:03 +00:00
|
|
|
};
|
|
|
|
}
|