Patchwork [1/6] gnu: Add emacs-minimal.

login
register
mail settings
Submitter Alex Kost
Date May 16, 2016, 6:20 p.m.
Message ID <1463422824-7161-2-git-send-email-alezost@gmail.com>
Download mbox | patch
Permalink /patch/12294/
State New
Headers show

Comments

Alex Kost - May 16, 2016, 6:20 p.m.
* gnu/packages/emacs.scm (emacs-minimal): New variable.
---
 gnu/packages/emacs.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
Ludovic Courtès - May 19, 2016, 11:52 a.m.
Alex Kost <alezost@gmail.com> skribis:

> * gnu/packages/emacs.scm (emacs-minimal): New variable.

Good idea, LGTM!

Ludo’.

Patch

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 11010b2..d31aa73 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -165,10 +165,25 @@  large Lisp programs.  It has full Unicode support for nearly all human
 languages.")
     (license license:gpl3+)))
 
-(define-public emacs-no-x
+(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.
   (package (inherit emacs)
+    (name "emacs-minimal")
+    (synopsis "The extensible text editor (used only for byte-compilation)")
+    (build-system gnu-build-system)
+    (arguments
+     (substitute-keyword-arguments (package-arguments emacs)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (delete 'install-site-start)))))
+    (inputs
+     `(("ncurses" ,ncurses)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))))
+
+(define-public emacs-no-x
+  (package (inherit emacs)
     (name "emacs-no-x")
     (synopsis "The extensible, customizable, self-documenting text
 editor (console only)")