* [bug#43145] [PATCH] gnu: Add emacs-next.
@ 2020-09-01 3:35 Morgan.J.Smith
2020-09-02 14:43 ` bug#43145: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Morgan.J.Smith @ 2020-09-01 3:35 UTC (permalink / raw)
To: 43145; +Cc: Morgan Smith
From: Morgan Smith <Morgan.J.Smith@outlook.com>
* gnu/packages/emacs.scm (emacs-next): New variable.
---
gnu/packages/emacs.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 0cd3e04381..7f510e9a6f 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -21,6 +21,7 @@
;;; Copyright © 2019 Leo Prikler <leo.prikler@student.tugraz.at>
;;; Copyright © 2019 Amin Bandali <bandali@gnu.org>
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
+;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -276,6 +277,42 @@ large Lisp programs. It has full Unicode support for nearly all human
languages.")
(license license:gpl3+)))
+(define-public emacs-next
+ (let ((commit "2ea34662c20f71d35dd52a5ed996542c7386b9cb")
+ (revision "0")
+ (emacs-version "28.0.50.1"))
+ (package/inherit emacs
+ (name "emacs-next")
+ (version (git-version emacs-version revision commit))
+ (source
+ (origin
+ (inherit (package-source emacs))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.savannah.gnu.org/git/emacs.git")
+ (commit commit)))
+ (sha256
+ (base32
+ "0igjm9kwiswn2dpiy2k9xikbdfc7njs07ry48fqz70anljj8y7y3"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments emacs)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'strip-double-wrap
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Directly copy emacs-X.Y to emacs, so that it is not wrapped
+ ;; twice. This also fixes a minor issue, where WMs would not be
+ ;; able to track emacs back to emacs.desktop.
+ (with-directory-excursion (assoc-ref outputs "out")
+ (copy-file (string-append
+ "bin/emacs-"
+ ,(version-major+minor+point (package-version emacs-next)))
+ "bin/emacs")
+ #t)))))))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ,@(package-native-inputs emacs))))))
+
(define-public emacs-minimal
;; This is the version that you should use as an input to packages that just
;; need to byte-compile .el files.
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#43145: [PATCH] gnu: Add emacs-next.
2020-09-01 3:35 [bug#43145] [PATCH] gnu: Add emacs-next Morgan.J.Smith
@ 2020-09-02 14:43 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-09-02 14:43 UTC (permalink / raw)
To: Morgan.J.Smith; +Cc: 43145-done
[-- Attachment #1: Type: text/plain, Size: 249 bytes --]
Hi,
Morgan.J.Smith@outlook.com skribis:
> From: Morgan Smith <Morgan.J.Smith@outlook.com>
>
> * gnu/packages/emacs.scm (emacs-next): New variable.
Applied with the following change to appease ‘guix lint’.
Thank you!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 618 bytes --]
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 7f510e9a6f..03c28ee7a7 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -289,8 +289,9 @@ languages.")
(inherit (package-source emacs))
(method git-fetch)
(uri (git-reference
- (url "https://git.savannah.gnu.org/git/emacs.git")
+ (url "https://git.savannah.gnu.org/git/emacs.git/")
(commit commit)))
+ (file-name (git-file-name name version))
(sha256
(base32
"0igjm9kwiswn2dpiy2k9xikbdfc7njs07ry48fqz70anljj8y7y3"))))
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-02 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01 3:35 [bug#43145] [PATCH] gnu: Add emacs-next Morgan.J.Smith
2020-09-02 14:43 ` bug#43145: " Ludovic Courtès
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).