diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-10-26 18:09:28 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-10-28 08:40:16 -0400 |
commit | 34a1783fc1498d7150210da22dd7804d288438b3 (patch) | |
tree | 5d964a4eb2de50130a878cd93373f429e10cb26f /doc/guix.texi | |
parent | 5c7bdc9a7fb2ed4f963dbacc7c1bee8cc9223303 (diff) | |
download | gnu-guix-34a1783fc1498d7150210da22dd7804d288438b3.tar gnu-guix-34a1783fc1498d7150210da22dd7804d288438b3.tar.gz |
scripts: build: Add --file option.
* guix/scripts/build.scm (show-help): Add help text for --file option.
(%options): Add --file option.
(options/resolve-packages): Handle 'file' options.
* tests/guix-build.sh: Add tests.
* doc/guix.texi ("invoking guix build"): Add doc.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 1bb7125fa2..9878b93ddb 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3615,6 +3615,19 @@ The @var{options} may be zero or more of the following: @table @code +@item --file=@var{file} +@itemx -f @var{file} + +Build the package or derivation that the code within @var{file} +evaluates to. + +As an example, @var{file} might contain a package definition like this +(@pxref{Defining Packages}): + +@example +@verbatiminclude package-hello.scm +@end example + @item --expression=@var{expr} @itemx -e @var{expr} Build the package or derivation @var{expr} evaluates to. |