summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-06-15 10:38:46 +0200
committerLudovic Courtès <ludo@gnu.org>2016-06-15 15:26:30 +0200
commitda675305ddf2ba574e309e515d18ae1f778297be (patch)
tree3ba9f81530c70b315a9235861e27e19ddb0ad97e /doc
parent789510640d8ac30298c45d0edc80ec9078aa3afd (diff)
packages: The 'source' can be any lowerable object.
* guix/packages.scm (expand-input): Use 'struct?' instead of 'origin?' when matching SOURCE. (package-source-derivation): Use 'lower-object' instead of 'origin->derivation'. * tests/packages.scm ("package-source-derivation, local-file"): New test. * doc/guix.texi (package Reference): Update 'source' documentation accordingly.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 0a30b52fca9..18a1960cf71 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -2503,8 +2503,12 @@ The name of the package, as a string.
2503The version of the package, as a string. 2503The version of the package, as a string.
2504 2504
2505@item @code{source} 2505@item @code{source}
2506An origin object telling how the source code for the package should be 2506An object telling how the source code for the package should be
2507acquired (@pxref{origin Reference}). 2507acquired. Most of the time, this is an @code{origin} object, which
2508denotes a file fetched from the Internet (@pxref{origin Reference}). It
2509can also be any other ``file-like'' object such as a @code{local-file},
2510which denotes a file from the local file system (@pxref{G-Expressions,
2511@code{local-file}}).
2508 2512
2509@item @code{build-system} 2513@item @code{build-system}
2510The build system that should be used to build the package (@pxref{Build 2514The build system that should be used to build the package (@pxref{Build