unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62664] [PATCH] [WIP] gnu: Add emacs-copilot.
@ 2023-04-04 14:30 Rostislav Svoboda
  2023-04-04 14:35 ` Rostislav Svoboda
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Rostislav Svoboda @ 2023-04-04 14:30 UTC (permalink / raw)
  To: 62664; +Cc: Rostislav Svoboda

---
 gnu/packages/emacs-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2b96c60057..d037fa9075 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36689,6 +36689,52 @@ (define-public emacs-tintin-mode
       (description "This major mode focuses on highlighting as many aspects of the TinTin++ scripting language as possible, organizing commands into functional categories and highlighting specific modes that many commands use to accomplish different tasks.")
       (license license:asl2.0))))
 
+(define-public emacs-copilot
+  (let ((commit "e11847ab0c3b183a1e53fbc1ac587de82912b9cf")
+        (revision "0"))
+    (package
+      (name "emacs-copilot")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/zerolfx/copilot.el.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0gsxb268vqyim65ag8d7dlgdqyxqrjcjirlnbfbfq0pdr1y2158q"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:include #~(cons "^dist/" %default-include)
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'substitute-copilot-node-executable
+              (lambda* (#:key inputs #:allow-other-keys)
+                (emacs-substitute-variables "copilot.el"
+                  ("copilot-node-executable"
+;;; Copilot requires Node 16+, however packaging v16 and/or v18 is not
+;;; trivial. See https://issues.guix.gnu.org/53414,
+;;; https://issues.guix.gnu.org/59188 .
+;;;
+;;; As a hack, download and compile recent Node version manually.
+                   (format #f "%s/node-v18.15.0/out/Release/node" (getenv "dev")) ; Remove this line when Node 16+ becomes available as a Guix package.
+                   ;; (search-input-file inputs "/bin/node")                      ; Activate this line when Node 16+ becomes available as a Guix package.
+                   )))))))
+      ;; (inputs (list node))                                                     ; Activate this line when Node 16+ becomes available as a Guix package.
+      (propagated-inputs
+       (list emacs-dash emacs-editorconfig emacs-s))
+      (home-page
+       "https://github.com/zerolfx/copilot.el.git")
+      (synopsis "An unofficial Copilot plugin for Emacs")
+      (description
+       "Copilot.el is an Emacs plugin for GitHub Copilot. This plugin is
+unofficial and based on binaries provided by copilot.vim. Note: You need
+access to GitHub Copilot to use this plugin.")
+      (license license:gpl3+))))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
-- 
2.39.2





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

end of thread, other threads:[~2024-12-24 18:12 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-04 14:30 [bug#62664] [PATCH] [WIP] gnu: Add emacs-copilot Rostislav Svoboda
2023-04-04 14:35 ` Rostislav Svoboda
2023-04-04 14:54 ` jgart via Guix-patches via
2023-04-04 19:19 ` Liliana Marie Prikler
2023-04-05 13:07   ` Giovanni Biscuolo
2023-04-06 19:34   ` Brian Cully via Guix-patches via
2023-04-07  5:00 ` [bug#62664] jgart via Guix-patches via
2024-10-17 22:26   ` [bug#62664] [PATCH] [WIP] gnu: Add emacs-copilot jgart via Guix-patches via
2024-10-27 10:39     ` Nicolas Goaziou via Guix-patches via
2024-10-28  2:41       ` jgart via Guix-patches via
2024-12-23 17:47         ` jgart via Guix-patches via
2024-12-23 18:34           ` jgart via Guix-patches via
2024-12-23 19:02             ` Liliana Marie Prikler
2024-10-28  2:40 ` [bug#62664] [PATCH v2] " jgart via Guix-patches via
2024-12-23 17:44 ` [bug#62664] [PATCH v3] " jgart via Guix-patches via
2024-12-24  8:20   ` Liliana Marie Prikler
2024-12-24 15:03     ` jgart via Guix-patches via
2024-12-24 15:13       ` jgart via Guix-patches via
2024-12-24 18:11       ` Liliana Marie Prikler

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