[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62664] [PATCH v3] gnu: Add emacs-copilot.
From: |
jgart |
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
- [bug#62664] [PATCH v3] gnu: Add emacs-copilot.,
jgart <=