mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
packages: Allow store paths as inputs.
* guix/packages.scm (package-derivation): Allow non-derivation store paths as inputs.
This commit is contained in:
parent
10d8289861
commit
cf56996046
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ (define* (package-derivation store package
|
||||||
(list name (package-derivation store package)
|
(list name (package-derivation store package)
|
||||||
sub-drv))
|
sub-drv))
|
||||||
(((? string? name)
|
(((? string? name)
|
||||||
(and (? string?) (? derivation-path?) drv))
|
(and (? string?) (? store-path?) drv))
|
||||||
|
;; Both derivation and output paths. The latter
|
||||||
|
;; can be files already in the store.
|
||||||
(list name drv))
|
(list name drv))
|
||||||
(((? string? name)
|
(((? string? name)
|
||||||
(and (? string?) (? (negate store-path?))
|
(and (? string?) (? (negate store-path?))
|
||||||
|
|
Loading…
Reference in a new issue