mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
build-system: gnu: Improve gnu-cross-build style.
* guix/build-system/gnu.scm (gnu-cross-build): Use with-imported-modules around the gnu-cross-build builder gexp. Change-Id: I47246571b1d84a82a67a8c289fd5ad4b5a3b5aeb Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
parent
490ad5f932
commit
aa7b1abf2c
1 changed files with 49 additions and 48 deletions
|
@ -1,5 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2012-2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -520,6 +521,7 @@ is one of `host' or `target'."
|
|||
cross-built inputs, and NATIVE-INPUTS are inputs that run on the build
|
||||
platform."
|
||||
(define builder
|
||||
(with-imported-modules imported-modules
|
||||
#~(begin
|
||||
(use-modules #$@(sexp->gexp modules))
|
||||
|
||||
|
@ -570,7 +572,7 @@ platform."
|
|||
#:make-dynamic-linker-cache? #$make-dynamic-linker-cache?
|
||||
#:license-file-regexp #$license-file-regexp
|
||||
#:strip-flags #$strip-flags
|
||||
#:strip-directories #$strip-directories)))
|
||||
#:strip-directories #$strip-directories))))
|
||||
|
||||
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
|
||||
system #:graft? #f)))
|
||||
|
@ -578,7 +580,6 @@ platform."
|
|||
#:system system
|
||||
#:target target
|
||||
#:graft? #f
|
||||
#:modules imported-modules
|
||||
#:substitutable? substitutable?
|
||||
#:allowed-references allowed-references
|
||||
#:disallowed-references disallowed-references
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue