GNU bug report logs - #62664
[PATCH] [WIP] gnu: Add emacs-copilot.

Previous Next

Package: guix-patches;

Reported by: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>

Date: Tue, 4 Apr 2023 14:32:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: jgart <jgart <at> dismail.de>
To: 62664 <at> debbugs.gnu.org
Cc: jgart <jgart <at> dismail.de>, Rostislav Svoboda <rostislav.svoboda <at> gmail.com>, jgart <jgart <at> dismail.de>, Liliana Marie Prikler <liliana.prikler <at> gmail.com>, Giovanni Biscuolo <g <at> xelera.eu>, Brian Cully <bjc <at> spork.org>, Nicolas Goaziou <mail <at> nicolasgoaziou.fr>, Andrew Tropin <andrew <at> trop.in>, Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>
Subject: [bug#62664] [PATCH v3] gnu: Add emacs-copilot.
Date: Mon, 23 Dec 2024 11:44:39 -0600
* gnu/packages/emacs-xyz.scm (emacs-copilot): New variable.

Change-Id: I3d693e5a59a28f488663421e6b2948cf8b51e031
---
 gnu/packages/emacs-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 65563bec24..f5826a87aa 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -29992,6 +29992,43 @@ (define-public emacs-dired-preview
 customisation options to control its behaviour.")
     (license license:gpl3+)))
 
+(define-public emacs-copilot
+  (let ((commit "d2126f288cebd9cd7e768c53a4cbfa6eedcb0666")
+        (revision "0"))
+    (package
+      (name "emacs-copilot")
+      (version (git-version "1.27.0" revision commit))
+      (source
+       (origin
+         (uri (git-reference
+               (url "https://github.com/copilot-emacs/copilot.el")
+               (commit commit)))
+         (method git-fetch)
+         (sha256
+          (base32 "14qnhp9pzilkrkaz2w52ylanjg44idi41dg6g7lqqc4fk0ib12kj"))
+         (file-name (git-file-name name version))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #: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"
+                   (search-input-file inputs "/bin/node"))))))))
+      (inputs (list node-lts))
+      (propagated-inputs
+       (list emacs-dash
+             emacs-editorconfig
+             emacs-f
+             emacs-s))
+      (home-page "https://github.com/copilot-emacs/copilot.el")
+      (synopsis "Copilot plugin for Emacs")
+      (description
+       "This package provides an Emacs plugin for GitHub Copilot.")
+      (license license:expat))))
+
 (define-public emacs-dired-launch
   (package
     (name "emacs-dired-launch")

base-commit: 64774d76869cd14712064d34f82f06c78ee796a6
-- 
2.46.0





This bug report was last modified 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.