Subject: [bug#76594] [PATCH v2 5/4] build-system/emacs: Allow usage of #:{allowed/disallowed}-references key

From: Morgan Smith <[email-masked]>
Date: Wed, 26 Feb 2025 13:00:41 -0500

* guix/build-system/emacs.scm (emacs-build): Pass '#:allowed-references' and
'#:disallowed-references' keys to builder.

Change-Id: Ib9a35a7b2115365b96675fb7ca3914b0ae7e67c7
---

oops.  Forgot to add this one to the series.  Going to sneek this in here

 guix/build-system/emacs.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/guix/build-system/emacs.scm b/guix/build-system/emacs.scm
index 03273d738b..06eec43ec4 100644
--- a/guix/build-system/emacs.scm
+++ b/guix/build-system/emacs.scm
@@ -95,7 +95,9 @@ (define* (emacs-build name inputs
                       (imported-modules %emacs-build-system-modules)
                       (modules '((guix build emacs-build-system)
                                  (guix build utils)
-                                 (guix build emacs-utils))))
+                                 (guix build emacs-utils)))
+                      allowed-references
+                      disallowed-references)
   "Build SOURCE using EMACS, and with INPUTS."
   (define builder
     (with-imported-modules imported-modules
@@ -120,6 +122,8 @@ (define* (emacs-build name inputs
                                                   system #:graft? #f)))
     (gexp->derivation name builder
                       #:system system
+                      #:allowed-references allowed-references
+                      #:disallowed-references disallowed-references
                       #:guile-for-build guile)))
 
 (define emacs-build-system

base-commit: 61428ccf41f21f5ea1e4f1eec722ef9b1efc3a0e
prerequisite-patch-id: c2ff0e5fe8ce40e8881779f771c56fee374bb48d
prerequisite-patch-id: 52a44595bd17d655afce51a485b930c44b4ff772
prerequisite-patch-id: c88c4e03afc4fdfb112a40f356bc97db80fb06b0
prerequisite-patch-id: cef5c8dde54b1d3790e6f84fdeafde5a9d8e619b
-- 
2.48.1