[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/18: gnu: Add emacs-gptel.
From: |
guix-commits |
Subject: |
05/18: gnu: Add emacs-gptel. |
Date: |
Sat, 8 Apr 2023 08:14:50 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit 82efb29ffba759252673f085bcf915617b2bba30
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")
- branch master updated (ff05a38d20 -> b08cdfc6d3), guix-commits, 2023/04/08
- 06/18: gnu: Add texlive-soulutf8., guix-commits, 2023/04/08
- 05/18: gnu: Add emacs-gptel.,
guix-commits <=
- 09/18: gnu: tuxedo-keyboard: Update to 3.2.1., guix-commits, 2023/04/08
- 02/18: gnu: Add sentencepiece., guix-commits, 2023/04/08
- 01/18: gnu: Remove abandoned spotify-tui package., guix-commits, 2023/04/08
- 12/18: gnu: darktable: Update to 4.2.1., guix-commits, 2023/04/08
- 15/18: gnu: gallery-dl: Update to 1.25.1., guix-commits, 2023/04/08
- 16/18: gnu: Add emacs-flymake-popon., guix-commits, 2023/04/08
- 17/18: gnu: emacs-ement: Update to 0.8.2., guix-commits, 2023/04/08
- 07/18: gnu: fet: Update to 6.8.7., guix-commits, 2023/04/08
- 08/18: gnu: pyzo: Update to 4.12.8., guix-commits, 2023/04/08
- 11/18: gnu: scintilla: Update to 5.3.4., guix-commits, 2023/04/08