From cf5699604621bf6b16569534805faa3559e778a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 16 Aug 2012 18:48:03 +0200 Subject: [PATCH] packages: Allow store paths as inputs. * guix/packages.scm (package-derivation): Allow non-derivation store paths as inputs. --- guix/packages.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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?))