From bc09bf0ccf87f63f5ed940c206a4d608ce563614 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 25 Jun 2023 22:27:33 +0200 Subject: [PATCH] tgpt: init at 1.6.11 --- pkgs/tools/misc/tgpt/default.nix | 31 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/misc/tgpt/default.nix diff --git a/pkgs/tools/misc/tgpt/default.nix b/pkgs/tools/misc/tgpt/default.nix new file mode 100644 index 000000000000..19af12dfd1ee --- /dev/null +++ b/pkgs/tools/misc/tgpt/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "tgpt"; + version = "1.6.11"; + + src = fetchFromGitHub { + owner = "aandrew-me"; + repo = "tgpt"; + rev = "refs/tags/v${version}"; + hash = "sha256-WcHPryzdFFS8eXaLPtwRd3xZwZ/x+MfwsA8wO2tRSYI="; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4e2b95205ad0..00c67b87bd78 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27307,6 +27307,8 @@ with pkgs; smemstat = callPackage ../os-specific/linux/smemstat { }; + tgpt = callPackage ../tools/misc/tgpt { }; + tgt = callPackage ../tools/networking/tgt { }; lkl = callPackage ../applications/virtualization/lkl { };