diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2016-06-15 10:38:46 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2016-06-15 15:26:30 +0200 |
| commit | da675305ddf2ba574e309e515d18ae1f778297be (patch) | |
| tree | 3ba9f81530c70b315a9235861e27e19ddb0ad97e /doc | |
| parent | 789510640d8ac30298c45d0edc80ec9078aa3afd (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.texi | 8 |
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. | |||
| 2503 | The version of the package, as a string. | 2503 | The version of the package, as a string. |
| 2504 | 2504 | ||
| 2505 | @item @code{source} | 2505 | @item @code{source} |
| 2506 | An origin object telling how the source code for the package should be | 2506 | An object telling how the source code for the package should be |
| 2507 | acquired (@pxref{origin Reference}). | 2507 | acquired. Most of the time, this is an @code{origin} object, which |
| 2508 | denotes a file fetched from the Internet (@pxref{origin Reference}). It | ||
| 2509 | can also be any other ``file-like'' object such as a @code{local-file}, | ||
| 2510 | which 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} |
| 2510 | The build system that should be used to build the package (@pxref{Build | 2514 | The build system that should be used to build the package (@pxref{Build |
