aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-11-21 15:14:33 +0100
committerLudovic Courtès <ludo@gnu.org>2019-11-26 00:16:36 +0100
commitdc209d5a5ddba4320c9a4f893d6df4b70f3685a0 (patch)
treee3ecd25f201444a62ea2638d9dabd518b5b4f896 /nix
parent6a893fa8692ef32a1dbef219d87b2336e26f1423 (diff)
downloadguix-dc209d5a5ddba4320c9a4f893d6df4b70f3685a0.tar
guix-dc209d5a5ddba4320c9a4f893d6df4b70f3685a0.tar.gz
guix build, daemon: Rename "--no-build-hook" to "--no-offload".
This is a followup to bc69ea2d605810cc32e13ed03d5848b8dc358b61. * guix/scripts/build.scm (show-build-options-help): Rename "--no-build-hook" to "--no-offload". (%standard-build-options): Likewise, and warn when "--no-build-hook" is passed. * nix/nix-daemon/guix-daemon.cc (options): Add "--no-offload" and mark "--no-build-hook" as hidden. * guix/scripts/offload.scm: Adjust comment. * doc/guix.texi (Invoking guix-daemon, Common Build Options): Replace "--no-build-hook" with "--no-offload". * etc/completion/fish/guix.fish, etc/completion/zsh/_guix: Adjust accordingly.
Diffstat (limited to 'nix')
-rw-r--r--nix/nix-daemon/guix-daemon.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc
index 6f9c404c8d..cd949aca67 100644
--- a/nix/nix-daemon/guix-daemon.cc
+++ b/nix/nix-daemon/guix-daemon.cc
@@ -113,8 +113,11 @@ static const struct argp_option options[] =
n_("do not use substitutes") },
{ "substitute-urls", GUIX_OPT_SUBSTITUTE_URLS, n_("URLS"), 0,
n_("use URLS as the default list of substitute providers") },
- { "no-build-hook", GUIX_OPT_NO_BUILD_HOOK, 0, 0,
- n_("do not use the 'build hook'") },
+ { "no-offload", GUIX_OPT_NO_BUILD_HOOK, 0, 0,
+ n_("do not attempt to offload builds") },
+ { "no-build-hook", GUIX_OPT_NO_BUILD_HOOK, 0,
+ OPTION_HIDDEN, // deprecated
+ n_("do not attempt to offload builds") },
{ "cache-failures", GUIX_OPT_CACHE_FAILURES, 0, 0,
n_("cache build failures") },
{ "rounds", GUIX_OPT_BUILD_ROUNDS, "N", 0,