mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
45 lines
928 B
Nix
45 lines
928 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, libglvnd
|
|
, pkg-config
|
|
, subPackages ? ["." "netclient"]
|
|
, xorg
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "netmaker";
|
|
version = "0.26.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gravitl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-f6R7Dc5M3MUjsCXvQAqamU9FFuqYEZoxYKwKhk4ilPc=";
|
|
};
|
|
|
|
vendorHash = "sha256-g9JyIuqYJZK47xQYM0+d1hcHcNBGLH3lW60hI6UkD84=";
|
|
|
|
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";
|
|
};
|
|
}
|