depot/third_party/nixpkgs/pkgs/applications/networking/netmaker/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
928 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, libglvnd
, pkg-config
, subPackages ? ["." "netclient"]
, xorg
}:
buildGoModule rec {
pname = "netmaker";
version = "0.25.0";
src = fetchFromGitHub {
owner = "gravitl";
repo = pname;
rev = "v${version}";
hash = "sha256-1mrodzW51nbqfWQjjmHYnInJd61FsWtQcYbKhJAiQ8Q=";
};
vendorHash = "sha256-/iuXnnO8OhGhQWg5nU/hza4yZMSIHKOTPFqojgY8w74=";
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";
};
}