daemon: Add '--substitute-urls' option.
authorLudovic Courtès <ludo@gnu.org>
Thu, 9 Oct 2014 11:25:41 +0000 (13:25 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 9 Oct 2014 21:51:19 +0000 (23:51 +0200)
commit9176607ec4cffb85b46e71af49bbc8a330aec5c3
treefff85fb1ca12965acaa29f8aaa650237f2b2f56d
parent74c7af9fb83bd4803b0f2cad4e6439bfad75edf0
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
guix/scripts/substitute-binary.scm
nix/nix-daemon/guix-daemon.cc