{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "tgpt"; version = "2.10.0"; src = fetchFromGitHub { owner = "aandrew-me"; repo = "tgpt"; tag = "v${version}"; hash = "sha256-q7dod5kKvKny4Zht6KpHpRa7N9Je+tmKVyn9PEde/+c="; }; vendorHash = "sha256-hPbvzhYHOxytQs3NkSVaZhFH0TbOlr4U/QiH+vemTrc="; ldflags = [ "-s" "-w" ]; preCheck = '' # Remove test which need network access rm src/providers/koboldai/koboldai_test.go rm src/providers/phind/phind_test.go ''; meta = { description = "ChatGPT in terminal without needing API keys"; homepage = "https://github.com/aandrew-me/tgpt"; changelog = "https://github.com/aandrew-me/tgpt/releases/tag/v${version}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ fab ]; mainProgram = "tgpt"; }; }