Allow specifying the systems and targets for compute and fix
This commit is contained in:
parent
28d762b568
commit
7e910be46e
1 changed files with 15 additions and 5 deletions
|
|
@ -1525,6 +1525,8 @@ WHERE builder != 'builtin:download'
|
|||
(define* (compute-and-fix-broken-derivations-in-revision
|
||||
git-repository-id commit
|
||||
#:key
|
||||
systems
|
||||
targets
|
||||
(ignore-systems '())
|
||||
(ignore-targets '())
|
||||
(extra-inferior-environment-variables '())
|
||||
|
|
@ -1681,11 +1683,19 @@ WHERE builder != 'builtin:download'
|
|||
(compute-derivations system target)))
|
||||
(list
|
||||
(let ((all-system-target-pairs
|
||||
(call-with-inferior
|
||||
inf-and-store-pool
|
||||
(lambda (inferior inferior-store)
|
||||
(inferior-fetch-system-target-pairs inferior))
|
||||
#:memory-limit inferior-memory-limit)))
|
||||
(if (or systems targets)
|
||||
(append
|
||||
(map (lambda (system)
|
||||
(cons system #f))
|
||||
(or systems '()))
|
||||
(map (lambda (target)
|
||||
(cons "x86_64-linux" target))
|
||||
(or targets '())))
|
||||
(call-with-inferior
|
||||
inf-and-store-pool
|
||||
(lambda (inferior inferior-store)
|
||||
(inferior-fetch-system-target-pairs inferior))
|
||||
#:memory-limit inferior-memory-limit))))
|
||||
(filter
|
||||
(match-lambda
|
||||
((system . target)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue