[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72406] [PATCH emacs-team WIP 3/4] build-system: emacs: Define commo
From: |
Liliana Marie Prikler |
Subject: |
[bug#72406] [PATCH emacs-team WIP 3/4] build-system: emacs: Define common variants. |
Date: |
Wed, 31 Jul 2024 20:42:31 +0200 |
* guix/build-system/emacs.scm (package-with-emacs-minimal)
(package-with-emacs-next, package-with-emacs-pgtk): New variables.
---
guix/build-system/emacs.scm | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/guix/build-system/emacs.scm b/guix/build-system/emacs.scm
index 88304b9ce1..74bb047e63 100644
--- a/guix/build-system/emacs.scm
+++ b/guix/build-system/emacs.scm
@@ -31,7 +31,11 @@ (define-module (guix build-system emacs)
#:use-module (guix build-system gnu)
#:export (%emacs-build-system-modules
emacs-build
- emacs-build-system)
+ emacs-build-system
+ ;; Common variants.
+ package-with-emacs-minimal
+ package-with-emacs-next
+ package-with-emacs-pgtk)
#:re-export (%default-include ;for convenience
%default-exclude))
@@ -181,4 +185,19 @@ (define* (package-with-explicit-emacs emacs old-prefix
new-prefix
(package-mapping transform cut?))
+(define package-with-emacs-minimal
+ (package-with-explicit-emacs (delay (resolve-emacs 'emacs-minimal))
+ "emacs-" "emacs-minimal-"
+ #:variant-property 'emacs-minimal-variant))
+
+(define package-with-emacs-pgtk
+ (package-with-explicit-emacs (delay (resolve-emacs 'emacs-pgtk))
+ "emacs-" "emacs-pgtk-"
+ #:variant-property 'emacs-pgtk-variant))
+
+(define package-with-emacs-next
+ (package-with-explicit-emacs (delay (resolve-emacs 'emacs-next))
+ "emacs-" "emacs-next-"
+ #:variant-property 'emacs-next-variant))
+
;;; emacs.scm ends here
--
2.45.2