unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62519] [PATCH] gnu: Add emacs-gptel.
@ 2023-03-29 12:42 Rostislav Svoboda
  2023-03-29 12:42 ` [bug#62520] [PATCH] gnu: Add emacs-pippel Rostislav Svoboda
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Rostislav Svoboda @ 2023-03-29 12:42 UTC (permalink / raw)
  To: 62519; +Cc: Rostislav Svoboda

* 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





^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-04-08 12:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29 12:42 [bug#62519] [PATCH] gnu: Add emacs-gptel Rostislav Svoboda
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

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).