mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: vm: Support derivation objects as inputs.
* gnu/system/vm.scm (expression->derivation-in-linux-vm)[input-alist]: Add case for derivation? objects. Same for #:inputs values. (qemu-image)[input->name+derivation]: Likewise.
This commit is contained in:
parent
8f37bf6200
commit
37c58656eb
1 changed files with 10 additions and 1 deletions
|
@ -92,6 +92,10 @@ (define input-alist
|
|||
`(,input . ,(package-output store package "out" system)))
|
||||
((input (? package? package) sub-drv)
|
||||
`(,input . ,(package-output store package sub-drv system)))
|
||||
((input (? derivation? drv))
|
||||
`(,input . ,(derivation->output-path drv)))
|
||||
((input (? derivation? drv) sub-drv)
|
||||
`(,input . ,(derivation->output-path drv sub-drv)))
|
||||
((input (and (? string?) (? store-path?) file))
|
||||
`(,input . ,file)))
|
||||
inputs))
|
||||
|
@ -178,7 +182,8 @@ (define builder
|
|||
`(,name ,(->drv package)
|
||||
,@sub-drv))
|
||||
((name (? string? file))
|
||||
`(,name ,file)))
|
||||
`(,name ,file))
|
||||
(tuple tuple))
|
||||
inputs))
|
||||
#:env-vars env-vars
|
||||
#:modules (delete-duplicates
|
||||
|
@ -216,6 +221,10 @@ (define input->name+derivation
|
|||
`(,name . ,(derivation->output-path
|
||||
(package-derivation store package system)
|
||||
sub-drv)))
|
||||
((name (? derivation? drv))
|
||||
`(,name . ,(derivation->output-path drv)))
|
||||
((name (? derivation? drv) sub-drv)
|
||||
`(,name . ,(derivation->output-path drv sub-drv)))
|
||||
((input (and (? string?) (? store-path?) file))
|
||||
`(,input . ,file))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue