blob: f9f9576b98ad994ae43613ab96f2ba897305e3d3 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "tgpt";
version = "2.9.3";
src = fetchFromGitHub {
owner = "aandrew-me";
repo = "tgpt";
tag = "v${version}";
hash = "sha256-6gUHTQfvGD1hIKrPWQrSr7kWL7GeuJXY7BY1gaAxHUw=";
};
vendorHash = "sha256-hPbvzhYHOxytQs3NkSVaZhFH0TbOlr4U/QiH+vemTrc=";
ldflags = [
"-s"
"-w"
];
preCheck = ''
# Remove test which need network access
rm providers/koboldai/koboldai_test.go
rm 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";
};
}
|