From: Rostislav Svoboda <rostislav.svoboda@gmail.com>
To: 62519@debbugs.gnu.org
Cc: Rostislav Svoboda <Rostislav.Svoboda@gmail.com>
Subject: [bug#62519] [PATCH] gnu: Add emacs-gptel.
Date: Wed, 29 Mar 2023 14:42:17 +0200 [thread overview]
Message-ID: <20230329124220.7210-1-Rostislav.Svoboda@gmail.com> (raw)
* gnu/packages/emacs-xyz.scm (emacs-gptel): New variable.
---
gnu/packages/emacs-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index da2856abc8..d5db2ea499 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -418,6 +418,44 @@ (define-public emacs-geiser
e.g. emacs-geiser-guile for Guile.")
(license license:bsd-3)))
+(define-public emacs-gptel
+ (let ((commit "1c07a94e18a914ae69ea0061f81fda4bba29afd5")
+ (revision "0"))
+ (package
+ (name "emacs-gptel")
+ (version (git-version "0.2.5" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/karthink/gptel")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "190nrxf6nqmfrsza3vyc51f02hw10wzydi45phkswydjkgsllkmp"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'substitute-gptel-use-curl
+ (lambda* (#:key inputs #:allow-other-keys)
+ (emacs-substitute-variables "gptel.el"
+ ("gptel-use-curl" (search-input-file
+ inputs
+ "/bin/curl"))))))))
+ (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, no-frills 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.
+Requires an OpenAI API key.")
+ (license license:gpl3+))))
+
(define-public emacs-geiser-guile
(package
(name "emacs-geiser-guile")
--
2.39.2
next reply other threads:[~2023-03-29 13:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 12:42 Rostislav Svoboda [this message]
2023-03-29 12:42 ` [bug#62520] [PATCH] gnu: Add emacs-pippel Rostislav Svoboda
[not found] ` <handler.62520.B.168009382118119.ack@debbugs.gnu.org>
2023-03-29 12:46 ` [bug#62520] Acknowledgement ([PATCH] gnu: Add emacs-pippel.) Rostislav Svoboda
2023-03-31 8:32 ` bug#62520: " Nicolas Goaziou
2023-03-29 12:42 ` [bug#62522] [PATCH 1/2] gnu: Add emacs-sphinx-doc Rostislav Svoboda
[not found] ` <handler.62522.B.168009383018152.ack@debbugs.gnu.org>
2023-03-29 12:46 ` [bug#62522] Acknowledgement ([PATCH 1/2] gnu: Add emacs-sphinx-doc.) Rostislav Svoboda
2023-03-31 8:36 ` bug#62522: " Nicolas Goaziou
2023-03-29 12:42 ` [bug#62521] [PATCH 2/2] gnu: Add emacs-railscasts-theme Rostislav Svoboda
[not found] ` <handler.62521.B.168009382918146.ack@debbugs.gnu.org>
2023-03-29 12:46 ` [bug#62521] Acknowledgement ([PATCH 2/2] gnu: Add emacs-railscasts-theme.) Rostislav Svoboda
2023-03-31 8:35 ` bug#62521: " Nicolas Goaziou
2023-04-08 12:08 ` bug#62519: [PATCH] gnu: Add emacs-gptel Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230329124220.7210-1-Rostislav.Svoboda@gmail.com \
--to=rostislav.svoboda@gmail.com \
--cc=62519@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).