summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-09-06 00:00:00 +0200
committerLudovic Courtès <ludo@gnu.org>2012-09-06 00:00:00 +0200
commitdc1045be7d9ba2257ce2ce97c9fdd3c02e5b1897 (patch)
treeb1d6a11b0c8a7d8b31976b73efbbf17242879057
parent1f34bda1e2e5ff8dc221c70e67705ca89638172f (diff)
packages: Accept <origin> as package inputs.
* guix/packages.scm (package-derivation): Accept use of an <origin> as an input.
-rw-r--r--guix/packages.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index 094f8157d0..1394f980f7 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -245,6 +245,9 @@ recursively."
(list name
(add-to-store store (basename file)
#t #f "sha256" file)))
+ (((? string? name) (? origin? source))
+ (list name
+ (package-source-derivation store source)))
(x
(raise (condition (&package-input-error
(package package)