mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Remove '%final-inputs' references at the top level.
Due to circular dependencies, referring to bindings exported by other modules from the top level is frowned upon. This patch addresses one of the remaining cases. * gnu/packages/base.scm (%final-inputs): New procedure. * gnu/packages/cross-base.scm: Remove (gnu packages commencement) import. (cross-gcc): Use the new '%final-inputs'. * gnu/packages/make-bootstrap.scm: Remove (gnu packages commencement) import. (package-with-relocatable-glibc): Use the new '%final-inputs'.
This commit is contained in:
parent
8af47ef603
commit
fb77c61422
3 changed files with 10 additions and 6 deletions
|
@ -1003,4 +1003,10 @@ program. It supports a wide variety of different encodings.")
|
|||
(proc (module-ref iface 'canonical-package)))
|
||||
(proc package)))
|
||||
|
||||
(define-public (%final-inputs)
|
||||
"Return the list of \"final inputs\"."
|
||||
;; Avoid circular dependency by lazily resolving 'commencement'.
|
||||
(let ((iface (resolve-interface '(gnu packages commencement))))
|
||||
(module-ref iface '%final-inputs)))
|
||||
|
||||
;;; base.scm ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue