{ buildGoModule, fetchFromGitHub, lib, libx11, stdenv, }: buildGoModule (finalAttrs: { pname = "netclient"; version = "1.6.0"; src = fetchFromGitHub { owner = "gravitl"; repo = "netclient"; rev = "v${finalAttrs.version}"; hash = "sha256-3vljlrWmetQfAwemRsC76e7DqlFVQKxnV1mpx/NtYvc="; }; vendorHash = "sha256-fnXekqGK1c6pf8UY1F44RYbU+wc9kZJQg3hmRPcBFCE="; buildInputs = lib.optional stdenv.hostPlatform.isLinux libx11; meta = { description = "Automated WireGuard® Management Client"; mainProgram = "netclient"; homepage = "https://netmaker.io"; changelog = "https://github.com/gravitl/netclient/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ wexder ]; }; })