summary refs log tree commit diff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-10-19 16:38:18 +0100
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:44:16 +0200
commitb3d5e2d252d9870bece8eb7acb50c5ce215e5da7 (patch)
tree079193c70597bcc9c1d6c7eb8487215e54296166 /doc/guix.texi
parentccb4a92c342b0bc721ed7baceac22b3e14f651a8 (diff)
downloadguix-b3d5e2d252d9870bece8eb7acb50c5ce215e5da7.tar.gz
build: copy-build-system: Allow specifying different output labels.
* guix/build/copy-build-system.scm: Introduce '#:output' parameter to specify
which output label to use for a given rule.
* doc/guix.texi (Build Systems): Document it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 7ff5e8c14b..04556630b3 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9312,6 +9312,9 @@ install all files but those matching the exclusion filters.
 If both inclusions and exclusions are specified, the exclusions are done
 on top of the inclusions.
 @end itemize
+@item When a package has multiple outputs, the @code{#:output} argument
+can be used to specify which output label the files should be installed
+to.
 @end itemize
 In all cases, the paths relative to @var{source} are preserved within
 @var{target}.
@@ -9328,6 +9331,9 @@ e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}.
 @file{share/my-app/sub/file}.
 @item @code{("foo/sub" "share/my-app" #:include ("file"))}: Install @file{foo/sub/file} to
 @file{share/my-app/file}.
+@item @code{("foo/doc" "share/my-app/doc" #:output "doc")}: Install
+@file{"foo/doc"} to @file{"share/my-app/doc"} within the @code{"doc"}
+output.
 @end itemize
 @end defvar