mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
pull: Pass #:use-substitutes? to 'show-what-to-build'.
Fixes <https://bugs.gnu.org/36509>. Reported by Robert Vollmert <rob@vllmrt.net>. * guix/scripts/pull.scm (build-and-install): Add #:use-substitutes? parameter and pass it to UPDATE-PROFILE. (guix-pull): Pass #:use-substitutes? to 'build-and-install'.
This commit is contained in:
parent
67fb53c0d8
commit
9b9b753529
1 changed files with 4 additions and 1 deletions
|
@ -193,7 +193,7 @@ (define* (display-profile-news profile #:key concise?
|
|||
(_ #t)))
|
||||
|
||||
(define* (build-and-install instances profile
|
||||
#:key verbose? dry-run?)
|
||||
#:key use-substitutes? verbose? dry-run?)
|
||||
"Build the tool from SOURCE, and install it in PROFILE. When DRY-RUN? is
|
||||
true, display what would be built without actually building it."
|
||||
(define update-profile
|
||||
|
@ -206,6 +206,7 @@ (define guix-command
|
|||
(mlet %store-monad ((manifest (channel-instances->manifest instances)))
|
||||
(mbegin %store-monad
|
||||
(update-profile profile manifest
|
||||
#:use-substitutes? use-substitutes?
|
||||
#:hooks %channel-profile-hooks
|
||||
#:dry-run? dry-run?)
|
||||
(munless dry-run?
|
||||
|
@ -600,6 +601,8 @@ (define (guix-pull . args)
|
|||
(build-and-install instances profile
|
||||
#:dry-run?
|
||||
(assoc-ref opts 'dry-run?)
|
||||
#:use-substitutes?
|
||||
(assoc-ref opts 'substitutes?)
|
||||
#:verbose?
|
||||
(assoc-ref opts 'verbose?))))))))))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue