mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
packages: Allow inputs that are local files.
* guix/packages.scm (package-derivation): Add to the store inputs that are local files.
This commit is contained in:
parent
74cd03b1a0
commit
e67ac6e668
1 changed files with 7 additions and 1 deletions
|
@ -179,7 +179,13 @@ (define* (package-derivation store package
|
||||||
sub-drv))
|
sub-drv))
|
||||||
(((? string? name)
|
(((? string? name)
|
||||||
(and (? string?) (? derivation-path?) drv))
|
(and (? string?) (? derivation-path?) drv))
|
||||||
(list name drv)))
|
(list name drv))
|
||||||
|
(((? string? name)
|
||||||
|
(and (? string?) (? (negate store-path?))
|
||||||
|
(? file-exists? file)))
|
||||||
|
(list name
|
||||||
|
(add-to-store store (basename file)
|
||||||
|
#t #f "sha256" file))))
|
||||||
(concatenate (list native-inputs inputs
|
(concatenate (list native-inputs inputs
|
||||||
propagated-inputs)))))
|
propagated-inputs)))))
|
||||||
(apply builder
|
(apply builder
|
||||||
|
|
Loading…
Reference in a new issue