summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRomain GARBAGE <romain.garbage@inria.fr>2026-03-18 15:47:08 +0100
committerSimon Tournier <zimon.toutoune@gmail.com>2026-07-03 15:10:29 +0200
commitce9929fadfcdb1426eec4ea228aaf68db7fd2db3 (patch)
tree6a8dcecb40b1f8d12514c458e74a62c7ea61b509 /doc
parent0fb918d61609f3aadc2d8ecc212926b3bdfabb4c (diff)
profiles: Add manifest generator based on build-system.
* guix/profiles.scm (build-system->manifest): New procedure. * doc/guix.texi (Writing Manifests): Document it. * tests/profiles.scm: Test it. Merges: #7272 Change-Id: Iaba54d5d4a1a9ae304de45f91374098617adebfc Signed-off-by: Simon Tournier <zimon.toutoune@gmail.com>
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