mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
45 lines
917 B
Nix
45 lines
917 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, lib
|
|
, libglvnd
|
|
, pkg-config
|
|
, subPackages ? ["." "netclient"]
|
|
, xorg
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "netmaker";
|
|
version = "0.20.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gravitl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-2NrqplVduDsaLGla1rzLGhX1YgZL6NBFFDVQRen7Pfk=";
|
|
};
|
|
|
|
vendorHash = "sha256-TrVtUv1xlz3Wbw4RY4NAzWmPE8JVk+GqPveqvfTe8e4=";
|
|
|
|
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.sspl;
|
|
maintainers = with maintainers; [ urandom qjoly ];
|
|
};
|
|
}
|