Merge pull request #286236 from eclairevoyant/tgpt

tgpt: 2.0.4 -> 2.7.1, set `passthru.updateScript`, move to `by-name`
This commit is contained in:
Weijia Wang 2024-03-08 20:23:53 +01:00 committed by GitHub
commit f6a4c012ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View File

@ -1,26 +1,32 @@
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "tgpt";
version = "2.0.4";
version = "2.7.1";
src = fetchFromGitHub {
owner = "aandrew-me";
repo = "tgpt";
rev = "refs/tags/v${version}";
hash = "sha256-+5hNcemVVuCX1FCL6U9SoJ/Jsef9exQXQFCdPj8qhCk=";
hash = "sha256-XuTDEcs1wIrAe7Oaok4aFP01jDcyWB01R3HNrx6UEpo=";
};
vendorHash = "sha256-HXpSoihk0s218DVCHe9VCGLBggWY8I25sw2qSaiUz4I=";
vendorHash = "sha256-docq/r6yyMPsuUyFbtCMaYfEVL0gLmyTy4PbrAemR00=";
ldflags = [
"-s"
"-w"
];
# test tries to access the network
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "ChatGPT in terminal without needing API keys";
homepage = "https://github.com/aandrew-me/tgpt";

View File

@ -27744,8 +27744,6 @@ with pkgs;
smemstat = callPackage ../os-specific/linux/smemstat { };
tgpt = callPackage ../tools/misc/tgpt { };
tgt = callPackage ../tools/networking/tgt { };
lkl = callPackage ../applications/virtualization/lkl { };