From bffdc9fcae090bd5638ec61fac0f3a76e9e635d5 Mon Sep 17 00:00:00 2001 From: ob7 Date: Tue, 10 Dec 2024 15:57:57 -0900 Subject: [PATCH] tenere: init at 0.11.2 (#363556) * maintainers: add ob7 * tenere: init at 0.11.2-0f3181a Terminal interface for large language models (LLMs). Adds a new package that provides a TUI for interacting with LLM services like Ollama. https://github.com/pythops/tenere (cherry picked from commit 0fc40be15941fe3ac1d01e379b61907d8770fede) --- maintainers/maintainer-list.nix | 7 +++++++ pkgs/by-name/te/tenere/package.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/by-name/te/tenere/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 58c68ee5b3ee0..3b1da0729580a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -16180,6 +16180,13 @@ github = "oaksoaj"; githubId = 103952141; }; + ob7 = { + name = "ob7"; + email = "dev@ob7.us"; + github = "ob7"; + githubId = 6877929; + keys = [ { fingerprint = "5C1C 0251 FA85 8C62 0E96 7AC5 2766 5625 0571 34E4"; } ]; + }; obadz = { email = "obadz-nixos@obadz.com"; github = "obadz"; diff --git a/pkgs/by-name/te/tenere/package.nix b/pkgs/by-name/te/tenere/package.nix new file mode 100644 index 0000000000000..fd2a56b74331e --- /dev/null +++ b/pkgs/by-name/te/tenere/package.nix @@ -0,0 +1,26 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: +rustPlatform.buildRustPackage rec { + pname = "tenere"; + version = "0.11.2-unstable-2024-12-05"; + src = fetchFromGitHub { + owner = "pythops"; + repo = "tenere"; + rev = "0f3181ab23066aa69aa4fec387a7e16578078179"; + hash = "sha256-HKPCX0bmXkB3LwvgE1li3dlWTgpW5CXuWZNq3mFY6FY="; + }; + cargoHash = "sha256-u6QCs3RaLeRoVfhRzUG7wwx7kd0O3KyiC5vhZ3mE7UM="; + + requiredSystemFeatures = [ "big-parallel" ]; # for fat LTO from upstream + + meta = { + description = "Terminal interface for large language models (LLMs)"; + homepage = "https://github.com/pythops/tenere"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ ob7 ]; + mainProgram = "tenere"; + }; +}