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
|
(define* (compute-and-fix-broken-derivations-in-revision
|
||||||
git-repository-id commit
|
git-repository-id commit
|
||||||
#:key
|
#:key
|
||||||
|
systems
|
||||||
|
targets
|
||||||
(ignore-systems '())
|
(ignore-systems '())
|
||||||
(ignore-targets '())
|
(ignore-targets '())
|
||||||
(extra-inferior-environment-variables '())
|
(extra-inferior-environment-variables '())
|
||||||
|
|
@ -1681,11 +1683,19 @@ WHERE builder != 'builtin:download'
|
||||||
(compute-derivations system target)))
|
(compute-derivations system target)))
|
||||||
(list
|
(list
|
||||||
(let ((all-system-target-pairs
|
(let ((all-system-target-pairs
|
||||||
(call-with-inferior
|
(if (or systems targets)
|
||||||
inf-and-store-pool
|
(append
|
||||||
(lambda (inferior inferior-store)
|
(map (lambda (system)
|
||||||
(inferior-fetch-system-target-pairs inferior))
|
(cons system #f))
|
||||||
#:memory-limit inferior-memory-limit)))
|
(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
|
(filter
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((system . target)
|
((system . target)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue