From 642c087de1592aeea0e65d04589423a05a96d68e Mon Sep 17 00:00:00 2001 From: John Soo Date: Sat, 21 Nov 2020 00:56:30 -0800 Subject: [PATCH 1/3] gnu: Add emacs-next-no-x. * gnu/packages/emacs.scm (emacs-next-no-x): New variable. --- gnu/packages/emacs.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 4f5a67093c..2d9f2e7ec1 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2019 Amin Bandali ;;; Copyright © 2020 Jack Hill ;;; Copyright © 2020 Morgan Smith +;;; Copyright © 2020 John Soo ;;; ;;; This file is part of GNU Guix. ;;; @@ -376,6 +377,27 @@ editor (console only)") (delete 'restore-emacs-pdmp) (delete 'strip-double-wrap))))))) +(define-public emacs-next-no-x + (package + (inherit emacs-next) + (name "emacs-next-no-x") + (synopsis (package-synopsis emacs-no-x)) + (build-system gnu-build-system) + (arguments + (substitute-keyword-arguments (package-arguments emacs-next) + ((#:configure-flags flags) + `(append '("--with-x-toolkit=no" + "--with-xpm=no" + "--with-jpeg=no" + "--with-gif=no" + "--with-tiff=no") + ,flags)) + ((#:phases phases) + `(modify-phases ,phases + (delete 'restore-emacs-pdmp) + (delete 'strip-double-wrap))))) + (inputs (package-inputs emacs-no-x)))) + (define-public emacs-no-x-toolkit (package/inherit emacs (name "emacs-no-x-toolkit") -- 2.29.1