mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 07:23:40 +00:00
42e1464c1a
Diff: https://github.com/aandrew-me/tgpt/compare/refs/tags/v2.0.2...v2.0.3 Changelog: https://github.com/aandrew-me/tgpt/releases/tag/v2.0.3
32 lines
695 B
Nix
32 lines
695 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tgpt";
|
|
version = "2.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aandrew-me";
|
|
repo = "tgpt";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4zm2dsYhN5itGto39p2Aq+9vF4iqqjCGwMWACuKSMs0=";
|
|
};
|
|
|
|
vendorHash = "sha256-HXpSoihk0s218DVCHe9VCGLBggWY8I25sw2qSaiUz4I=";
|
|
|
|
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 ];
|
|
};
|
|
}
|