{ buildGoModule , fetchFromGitHub , installShellFiles , lib , libglvnd , pkg-config , subPackages ? ["." "netclient"] , xorg }: buildGoModule rec { pname = "netmaker"; version = "0.18.7"; src = fetchFromGitHub { owner = "gravitl"; repo = pname; rev = "v${version}"; hash = "sha256-XnBz5dUBu6VqxLFsBXOvdLu/LsrfyEp9MLR/+nNggBk="; }; vendorHash = "sha256-a2ecHdxX82/JScRPGKpgEtrISD7qkPoZyv9kvO6SzaQ="; 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 ]; }; }