summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index d3abbf29351..c25a30701f9 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9837,6 +9837,23 @@ line, which can often be more convenient.
9837 9837
9838@c TODO: specifications->package, etc. 9838@c TODO: specifications->package, etc.
9839 9839
9840@deffn {Procedure} build-system->manifest build-system [system] [#:target]
9841Given @var{build-system}, a variable referring to a build system value
9842suitable for the @code{build-system} field in the @code{package} record
9843type, return a manifest providing all the packages required by the build
9844system, for @var{system}, optionally when cross-compiling to
9845@var{target}.
9846
9847In order to be able to use a build system variable, the corresponding
9848module must be loaded, as in the following example:
9849
9850@lisp
9851(use-modules (guix build-system cmake))
9852
9853(build-system->manifest cmake-build-system)
9854@end lisp
9855@end deffn
9856
9840 9857
9841@node Build Systems 9858@node Build Systems
9842@section Build Systems 9859@section Build Systems