mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
5462cbed9b
Diff: https://github.com/aandrew-me/tgpt/compare/refs/tags/v2.7.1...v2.7.2 Changelog: https://github.com/aandrew-me/tgpt/releases/tag/v2.7.2
38 lines
831 B
Nix
38 lines
831 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tgpt";
|
|
version = "2.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aandrew-me";
|
|
repo = "tgpt";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FbnweHiKfxqFegZnRlvdVbTmH4ImjddVOBlbGRT/SGw=";
|
|
};
|
|
|
|
vendorHash = "sha256-docq/r6yyMPsuUyFbtCMaYfEVL0gLmyTy4PbrAemR00=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
preCheck = ''
|
|
# Remove test which need network access
|
|
rm providers/koboldai/koboldai_test.go
|
|
'';
|
|
|
|
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 ];
|
|
mainProgram = "tgpt";
|
|
};
|
|
}
|