[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
162/244: gnu: Add emacs-gptel.
From: |
guix-commits |
Subject: |
162/244: gnu: Add emacs-gptel. |
Date: |
Wed, 12 Apr 2023 08:49:13 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit cef05ce4feceaf6881d78d6ba0a1775d5334bd35
Author: Rostislav Svoboda <rostislav.svoboda@gmail.com>
AuthorDate: Wed Mar 29 14:42:17 2023 +0200
gnu: Add emacs-gptel.
* gnu/packages/emacs-xyz.scm (emacs-gptel): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/emacs-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ec2078f44c..04a6d8e3ed 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -418,6 +418,45 @@ favourite Scheme implementation, you also need the
corresponding geiser package,
e.g. emacs-geiser-guile for Guile.")
(license license:bsd-3)))
+(define-public emacs-gptel
+ (package
+ (name "emacs-gptel")
+ (version "0.3.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/karthink/gptel")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1fg3dms7d05zpvkf8kxxh9726qvdfpmfsrgpc9fzm557ai13yhi5"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'use-appropriate-curl
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "gptel-curl.el"
+ (("\"curl\"")
+ (string-append "\""
+ (search-input-file inputs "/bin/curl")
+ "\"")))
+ (emacs-substitute-variables "gptel.el"
+ ("gptel-use-curl" 't)))))))
+ (inputs (list curl))
+ (propagated-inputs (list emacs-map))
+ (home-page "https://github.com/karthink/gptel")
+ (synopsis "GPTel is a simple ChatGPT client for Emacs")
+ (description
+ "GPTel is a simple ChatGPT asynchronous client for Emacs with no external
+dependencies. It can interact with ChatGPT from any Emacs buffer with ChatGPT
+responses encoded in Markdown or Org markup. It supports conversations, not
+just one-off queries and multiple independent sessions. It requires an OpenAI
+API key.")
+ (license license:gpl3+)))
+
(define-public emacs-geiser-guile
(package
(name "emacs-geiser-guile")
- 146/244: services: base: Remove 'console-font-service' procedure., (continued)
- 146/244: services: base: Remove 'console-font-service' procedure., guix-commits, 2023/04/12
- 144/244: services: sddm: Remove 'sddm-service' procedure., guix-commits, 2023/04/12
- 149/244: services: desktop: Remove 'mate-desktop-service' procedure., guix-commits, 2023/04/12
- 147/244: services: guix-publish: Remove 'compression-level' field., guix-commits, 2023/04/12
- 152/244: gnu: Add libpanel., guix-commits, 2023/04/12
- 212/244: gnu: open-adventure: Update to 1.15., guix-commits, 2023/04/12
- 232/244: status: Guard against a numerical overflow condition., guix-commits, 2023/04/12
- 161/244: gnu: Add llama-cpp., guix-commits, 2023/04/12
- 197/244: gnu: xfce4-clipman-plugin: Update to 1.6.3., guix-commits, 2023/04/12
- 171/244: gnu: ruby-pg: Update to 1.4.6., guix-commits, 2023/04/12
- 162/244: gnu: Add emacs-gptel.,
guix-commits <=
- 219/244: gnu: s6-dns: Update to 2.3.5.5., guix-commits, 2023/04/12
- 214/244: gnu: Add libxisf., guix-commits, 2023/04/12
- 206/244: gnu: emacs-treemacs-extra: Improve package style., guix-commits, 2023/04/12
- 222/244: gnu: s6-portable-utils: Update to 2.3.0.2., guix-commits, 2023/04/12
- 169/244: gnu: darktable: Update to 4.2.1., guix-commits, 2023/04/12
- 200/244: gnu: thunar-archive-plugin: Update to 0.5.1., guix-commits, 2023/04/12
- 202/244: gnu: xfce4-notifyd: Update to 0.8.2., guix-commits, 2023/04/12
- 204/244: gnu: xfce4-screensaver: Update to 4.18.1., guix-commits, 2023/04/12
- 207/244: gnu: emacs-treemacs: Update to 3.1., guix-commits, 2023/04/12
- 201/244: gnu: parole: Update to 4.18.0., guix-commits, 2023/04/12