Skip to content
Snippets Groups Projects
Commit e67ac6e6 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

packages: Allow inputs that are local files.

* guix/packages.scm (package-derivation): Add to the store inputs that
  are local files.
parent 74cd03b1
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,13 @@ (define* (package-derivation store package ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment