nixpkgs/pkgs/by-name/tg/tgpt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
831 B
Nix
Raw Normal View History

2023-06-25 20:27:33 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "tgpt";
2024-03-30 12:38:17 +00:00
version = "2.7.3";
2023-06-25 20:27:33 +00:00
src = fetchFromGitHub {
owner = "aandrew-me";
repo = "tgpt";
rev = "refs/tags/v${version}";
2024-03-30 12:38:17 +00:00
hash = "sha256-tInbOCrGXZkyGrkXSppK7Qugh0E2CdjmybMeH49Wc5s=";
2023-06-25 20:27:33 +00:00
};
2024-02-04 08:06:48 +00:00
vendorHash = "sha256-docq/r6yyMPsuUyFbtCMaYfEVL0gLmyTy4PbrAemR00=";
2023-06-25 20:27:33 +00:00
ldflags = [
"-s"
"-w"
];
preCheck = ''
# Remove test which need network access
rm providers/koboldai/koboldai_test.go
'';
2024-02-04 08:03:08 +00:00
2023-06-25 20:27:33 +00:00
meta = with lib; {
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 = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
2023-11-27 01:17:53 +00:00
mainProgram = "tgpt";
2023-06-25 20:27:33 +00:00
};
}