diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-07-01 17:32:03 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-07-05 01:20:05 +0200 |
commit | e67ac6e66811c6125d25febe76043fa47037591f (patch) | |
tree | 8126ce8e25cc47168d439d368dc41e2a342503c3 | |
parent | 74cd03b1a08a73c349818312cf2e0be9f54e0d4e (diff) | |
download | guix-e67ac6e66811c6125d25febe76043fa47037591f.tar.gz |
packages: Allow inputs that are local files.
* guix/packages.scm (package-derivation): Add to the store inputs that are local files.
-rw-r--r-- | guix/packages.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/guix/packages.scm b/guix/packages.scm index c3a17640eb..2d269ad339 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -179,7 +179,13 @@ representation." sub-drv)) (((? string? name) (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 propagated-inputs))))) (apply builder |