aboutsummaryrefslogtreecommitdiff
path: root/guix/packages.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-08-16 18:48:03 +0200
committerLudovic Courtès <ludo@gnu.org>2012-08-16 18:48:03 +0200
commitcf5699604621bf6b16569534805faa3559e778a6 (patch)
tree63041ab5066532859875f90c25a39b319918dcb1 /guix/packages.scm
parent10d82898611572dd9be02c18a51089e14bcd7207 (diff)
downloadgnu-guix-cf5699604621bf6b16569534805faa3559e778a6.tar
gnu-guix-cf5699604621bf6b16569534805faa3559e778a6.tar.gz
packages: Allow store paths as inputs.
* guix/packages.scm (package-derivation): Allow non-derivation store paths as inputs.
Diffstat (limited to 'guix/packages.scm')
-rw-r--r--guix/packages.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index c835e92815..311e3b6048 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -200,7 +200,9 @@ with their propagated inputs, recursively."
(list name (package-derivation store package)
sub-drv))
(((? 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))
(((? string? name)
(and (? string?) (? (negate store-path?))