Fabian Affolter 2024-03-17 22:33:27 +01:00
parent 54aa6db4bf
commit 5462cbed9b

View File

@ -1,18 +1,17 @@
{ lib { lib
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, nix-update-script
}: }:
buildGoModule rec { buildGoModule rec {
pname = "tgpt"; pname = "tgpt";
version = "2.7.1"; version = "2.7.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aandrew-me"; owner = "aandrew-me";
repo = "tgpt"; repo = "tgpt";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-XuTDEcs1wIrAe7Oaok4aFP01jDcyWB01R3HNrx6UEpo="; hash = "sha256-FbnweHiKfxqFegZnRlvdVbTmH4ImjddVOBlbGRT/SGw=";
}; };
vendorHash = "sha256-docq/r6yyMPsuUyFbtCMaYfEVL0gLmyTy4PbrAemR00="; vendorHash = "sha256-docq/r6yyMPsuUyFbtCMaYfEVL0gLmyTy4PbrAemR00=";
@ -22,10 +21,10 @@ buildGoModule rec {
"-w" "-w"
]; ];
# test tries to access the network preCheck = ''
doCheck = false; # Remove test which need network access
rm providers/koboldai/koboldai_test.go
passthru.updateScript = nix-update-script { }; '';
meta = with lib; { meta = with lib; {
description = "ChatGPT in terminal without needing API keys"; description = "ChatGPT in terminal without needing API keys";