nixpkgs/pkgs/tools/misc/tgpt/default.nix

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

33 lines
721 B
Nix
Raw Normal View History

2023-06-25 20:27:33 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "tgpt";
version = "2.0.4";
2023-06-25 20:27:33 +00:00
src = fetchFromGitHub {
owner = "aandrew-me";
repo = "tgpt";
rev = "refs/tags/v${version}";
hash = "sha256-+5hNcemVVuCX1FCL6U9SoJ/Jsef9exQXQFCdPj8qhCk=";
2023-06-25 20:27:33 +00:00
};
2023-10-10 09:37:08 +00:00
vendorHash = "sha256-HXpSoihk0s218DVCHe9VCGLBggWY8I25sw2qSaiUz4I=";
2023-06-25 20:27:33 +00:00
ldflags = [
"-s"
"-w"
];
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
};
}