2023-01-11 07:51:40 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, lib
|
|
|
|
, libglvnd
|
|
|
|
, pkg-config
|
|
|
|
, subPackages ? ["." "netclient"]
|
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "netmaker";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.24.1";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gravitl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-Me1hux+Y3EiT9vlP4+4019JPcDEW0d5byFO6YIfKbbw=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-BlZYXLvB05BTI2gMke8I2ob4jYSrixfpBUqKzNcHisI=";
|
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
|
|
|
};
|
|
|
|
}
|