Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / tg / tgpt / package.nix
blob9c0e87a0562f10ce45070d316d72ce00e5a03117
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "tgpt";
8   version = "2.7.4";
10   src = fetchFromGitHub {
11     owner = "aandrew-me";
12     repo = "tgpt";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-Nk+iLsTXnw6RAc1VztW8ZqeUVsywFjMCOBY2yuWbUXQ=";
15   };
17   vendorHash = "sha256-docq/r6yyMPsuUyFbtCMaYfEVL0gLmyTy4PbrAemR00=";
19   ldflags = [
20     "-s"
21     "-w"
22   ];
24   preCheck = ''
25     # Remove test which need network access
26     rm providers/koboldai/koboldai_test.go
27   '';
29   meta = with lib; {
30     description = "ChatGPT in terminal without needing API keys";
31     homepage = "https://github.com/aandrew-me/tgpt";
32     changelog = "https://github.com/aandrew-me/tgpt/releases/tag/v${version}";
33     license = licenses.gpl3Only;
34     maintainers = with maintainers; [ fab ];
35     mainProgram = "tgpt";
36   };