{ buildGoModule, fetchFromGitHub, xorg, }: let version = "0.2.0"; in buildGoModule { pname = "tsui"; inherit version; src = fetchFromGitHub { owner = "neuralinkcorp"; repo = "tsui"; rev = "v${version}"; hash = "sha256-DVkiZc+7XNgj47T1uZg6bnfoMw+0dP4+72AxfCYKcL4="; }; buildInputs = [ xorg.libX11.dev ]; vendorHash = "sha256-FIbkPE5KQ4w7Tc7kISQ7ZYFZAoMNGiVlFWzt8BPCf+A="; # Inject the version info in the binary. ldflags = [ "-X main.Version=${version}" ]; }