diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-08-17 20:56:47 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-08-17 20:58:58 +0200 |
commit | 4231f05bbc29e4e3deffc9106a5faf14920979d3 (patch) | |
tree | 70e0d25011624721d1c5f853180cfe3c58fbe482 /doc | |
parent | 65f88b20857b2358cf228a4b0794d2c42f70f84f (diff) | |
download | guix-4231f05bbc29e4e3deffc9106a5faf14920979d3.tar guix-4231f05bbc29e4e3deffc9106a5faf14920979d3.tar.gz |
monads: Add 'package->cross-derivation' and #:target for 'package-file'.
* guix/monads.scm (package-file): Add #:target keyword parameter and
honor it.
(package->cross-derivation): New procedure.
* tests/monads.scm ("package-file + package->cross-derivation"): New test.
* doc/guix.texi (The Store Monad): Update 'package-file' documentation.
Add 'package->cross-derivation'.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 92eccad118..a7803a4aee 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -2065,15 +2065,19 @@ The example below adds a file to the store, under two different names: @end deffn @deffn {Monadic Procedure} package-file @var{package} [@var{file}] @ - [#:system (%current-system)] [#:output "out"] Return as a monadic + [#:system (%current-system)] [#:target #f] @ + [#:output "out"] Return as a monadic value in the absolute file name of @var{file} within the @var{output} directory of @var{package}. When @var{file} is omitted, return the name -of the @var{output} directory of @var{package}. +of the @var{output} directory of @var{package}. When @var{target} is +true, use it as a cross-compilation target triplet. @end deffn @deffn {Monadic Procedure} package->derivation @var{package} [@var{system}] -Monadic version of @code{package-derivation} (@pxref{Defining -Packages}). +@deffnx {Monadic Procedure} package->cross-derivation @var{package} @ + @var{target} [@var{system}] +Monadic version of @code{package-derivation} and +@code{package-cross-derivation} (@pxref{Defining Packages}). @end deffn |