Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
909 B
Nix
43 lines
909 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
libX11,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tgpt";
|
|
version = "2.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aandrew-me";
|
|
repo = "tgpt";
|
|
tag = "v${version}";
|
|
hash = "sha256-mEzTvurjG/58qgNtJie7Iy6rSkiu2VbDIu1MiyrcEyo=";
|
|
};
|
|
|
|
vendorHash = "sha256-Xilu4wzDkwf15LmVH0Pkk91/nDisUu66aPP0JvT4ldo=";
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
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";
|
|
};
|
|
}
|