mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
gexp: 'lower-inputs' uses 'mapm/accumulate-builds'.
This doesn't have an noticeable impact on the run time of 'guix system build desktop.tmp --no-grafts -d'. * guix/gexp.scm (lower-inputs): Use 'mapm/accumulate-builds' instead of 'mapm'.
This commit is contained in:
parent
1213ea9bd9
commit
584dfdac37
1 changed files with 16 additions and 16 deletions
|
@ -683,22 +683,22 @@ (define (store-item? obj)
|
|||
(and (string? obj) (store-path? obj)))
|
||||
|
||||
(with-monad %store-monad
|
||||
(mapm %store-monad
|
||||
(match-lambda
|
||||
(((? struct? thing) sub-drv ...)
|
||||
(mlet %store-monad ((obj (lower-object
|
||||
thing system #:target target)))
|
||||
(return (match obj
|
||||
((? derivation? drv)
|
||||
(let ((outputs (if (null? sub-drv)
|
||||
'("out")
|
||||
sub-drv)))
|
||||
(derivation-input drv outputs)))
|
||||
((? store-item? item)
|
||||
item)))))
|
||||
(((? store-item? item))
|
||||
(return item)))
|
||||
inputs)))
|
||||
(mapm/accumulate-builds
|
||||
(match-lambda
|
||||
(((? struct? thing) sub-drv ...)
|
||||
(mlet %store-monad ((obj (lower-object
|
||||
thing system #:target target)))
|
||||
(return (match obj
|
||||
((? derivation? drv)
|
||||
(let ((outputs (if (null? sub-drv)
|
||||
'("out")
|
||||
sub-drv)))
|
||||
(derivation-input drv outputs)))
|
||||
((? store-item? item)
|
||||
item)))))
|
||||
(((? store-item? item))
|
||||
(return item)))
|
||||
inputs)))
|
||||
|
||||
(define* (lower-reference-graphs graphs #:key system target)
|
||||
"Given GRAPHS, a list of (FILE-NAME INPUT ...) lists for use as a
|
||||
|
|
Loading…
Reference in a new issue