1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

monad-repl: Add "build-options" command.

There currently was no way to disable build offload for ,build from inside the
REPL.  Since offloaded builds sometimes do not error report entirely
correctly, it is useful to be able to switch to local builds.

This commit adds new ,build-options meta command, which allows to specify
build options, including #:offload?.

* guix/monad-repl.scm (%build-options): New variable.
(evaluate/print-with-store, package-argument-command): Use it.
(build-options): New meta command to set it.
* doc/guix.texi (Using Guix Interactively): Document it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Tomas Volf
2025-10-06 01:49:00 +02:00
committed by Ludovic Courtès
parent 159dcc337a
commit 0159dc10cd
2 changed files with 36 additions and 8 deletions

View File

@@ -13204,6 +13204,16 @@ Lower @var{object} and build it if it's not already built, returning its
output file name(s).
@end deffn
@deffn {REPL command} build-options @var{options}
Set build options for rest of the REPL commands to @var{options}. Must
be a list of keywords with values accepted by procedure
@code{(@@ (guix store) set-build-options)}. An example would be:
@example
,build-options '(#:offload? #f)
@end example
@end deffn
@deffn {REPL command} lower @var{object}
Lower @var{object} into a derivation or store file name and return it.
@end deffn