From 4a3e602c72818c781cce1f4c263b29c42005874e Mon Sep 17 00:00:00 2001 From: Taylan Ulrich Bayirli/Kammer Date: Tue, 29 Jul 2014 10:00:56 +0200 Subject: [PATCH] gnu: Add emacs-no-x-toolkit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/emacs.scm (emacs-no-x-toolkit): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/emacs.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 91d57cdb03..a9cfa19d4d 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -1,4 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer ;;; Copyright © 2013 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. @@ -36,7 +37,9 @@ (define-module (gnu packages emacs) #:use-module ((gnu packages compression) #:renamer (symbol-prefix-proc 'compression:)) #:use-module (gnu packages xml) - #:use-module (gnu packages glib)) + #:use-module (gnu packages glib) + #:use-module (guix utils) + #:use-module (srfi srfi-1)) (define-public emacs (package @@ -102,6 +105,17 @@ (define-public emacs languages.") (license gpl3+))) +(define-public emacs-no-x-toolkit + (package (inherit emacs) + (name "emacs-no-x-toolkit") + (synopsis "The extensible, customizable, self-documenting text +editor (without an X toolkit)" ) + (inputs (alist-delete "gtk+" (package-inputs emacs))) + (arguments + (substitute-keyword-arguments (package-arguments emacs) + ((#:configure-flags flags) + `(cons "--with-x-toolkit=no" ,flags)))))) + ;;; ;;; Emacs hacking.