From 9176607ec4cffb85b46e71af49bbc8a330aec5c3 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 9 Oct 2014 13:25:41 +0200 Subject: daemon: Add '--substitute-urls' option. * nix/nix-daemon/guix-daemon.cc (GUIX_OPT_SUBSTITUTE_URLS): New macro. (GUIX_OPT_NO_BUILD_HOOK, GUIX_OPT_GC_KEEP_OUTPUTS, GUIX_OPT_GC_KEEP_DERIVATIONS): Renumber. (options): Add '--substitute-urls'. (parse_opt): Honor it. (main): Add 'settings.set' call for the default "substitute-urls" value. * guix/scripts/substitute-binary.scm (daemon-options, find-daemon-option): New procedures. (%cache-url): Define based on the "substitute-urls" daemon option. * doc/guix.texi (Invoking guix-daemon): Document '--substitute-urls'. (Substitutes): Mention it. --- doc/guix.texi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index c9760f5f60..5881adb221 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -453,6 +453,14 @@ When the daemon runs with @code{--no-substitutes}, clients can still explicitly enable substitution @i{via} the @code{set-build-options} remote procedure call (@pxref{The Store}). +@item --substitute-urls=@var{urls} +Consider @var{urls} the default whitespace-separated list of substitute +source URLs. When this option is omitted, @code{http://hydra.gnu.org} +is used. + +This means that substitutes may be downloaded from @var{urls}, as long +as they are signed by a trusted signature (@pxref{Substitutes}). + @cindex build hook @item --no-build-hook Do not use the @dfn{build hook}. @@ -981,7 +989,10 @@ also result from derivation builds, can be available as substitutes. The @code{hydra.gnu.org} server is a front-end to a build farm that builds packages from the GNU distribution continuously for some -architectures, and makes them available as substitutes. +architectures, and makes them available as substitutes. This is the +default source of substitutes; it can be overridden by passing +@command{guix-daemon} the @code{--substitute-urls} option +(@pxref{Invoking guix-daemon}). @cindex security @cindex digital signatures -- cgit v1.2.3