mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
69b3dc11f6
Diff: https://github.com/aandrew-me/tgpt/compare/refs/tags/v1.6.12...v1.7.0 Changelog: https://github.com/aandrew-me/tgpt/releases/tag/v1.7.0
32 lines
695 B
Nix
32 lines
695 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tgpt";
|
|
version = "1.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aandrew-me";
|
|
repo = "tgpt";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-g9gwLM7H7sPzR9Gpyun0Nc+Afe5phSFYrGBUOmyLG/I=";
|
|
};
|
|
|
|
vendorHash = "sha256-2I5JJWxM6aZx0eZu7taUTL11Y/5HIrXYC5aezrTbbsM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|