[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: services: 'guix-configuration' has a 'substitute-urls' field.

From: Ludovic Courtès
Subject: 01/02: services: 'guix-configuration' has a 'substitute-urls' field.
Date: Wed, 28 Oct 2015 21:03:41 +0000

civodul pushed a commit to branch master
in repository guix.

commit b0b9f6e0a62852a0b4d0a86d9e8427dd7d36a714
Author: Ludovic Courtès <address@hidden>
Date:   Wed Oct 28 18:15:49 2015 +0100

    services: 'guix-configuration' has a 'substitute-urls' field.
    * gnu/services/base.scm (<guix-configuration>)[substitute-urls]: New
      (guix-dmd-service): Honor it.
    * doc/guix.texi (Base Services): Document it.
 doc/guix.texi         |    3 +++
 gnu/services/base.scm |    6 +++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 4fbe057..0a38279 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -6217,6 +6217,9 @@ Whether to authorize the substitute key for 
 @item @code{use-substitutes?} (default: @code{#t})
 Whether to use substitutes.
address@hidden @code{substitute-urls} (default: @var{%default-substitute-urls})
+The list of URLs where to look for substitutes by default.
 @item @code{extra-options} (default: @code{'()})
 List of extra command-line options for @command{guix-daemon}.
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 336cc4d..618cef8 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -751,6 +751,8 @@ failed to register public key: ~a~%" 
                     (default #t))
   (use-substitutes? guix-configuration-use-substitutes? ;Boolean
                     (default #t))
+  (substitute-urls  guix-configuration-substitute-urls ;list of strings
+                    (default %default-substitute-urls))
   (extra-options    guix-configuration-extra-options ;list of strings
                     (default '()))
   (lsof             guix-configuration-lsof       ;<package>
@@ -765,7 +767,8 @@ failed to register public key: ~a~%" 
   "Return a <dmd-service> for the Guix daemon service with CONFIG."
   (match config
     (($ <guix-configuration> guix build-group build-accounts authorize-key?
-                             use-substitutes? extra-options lsof lsh)
+                             use-substitutes? substitute-urls extra-options
+                             lsof lsh)
      (list (dmd-service
             (documentation "Run the Guix daemon.")
             (provision '(guix-daemon))
@@ -777,6 +780,7 @@ failed to register public key: ~a~%" 
                       #$@(if use-substitutes?
+                      "--substitute-urls" #$(string-join substitute-urls)
                 ;; Add 'lsof' (for the GC) and 'lsh' (for offloading) to the

reply via email to

[Prev in Thread] Current Thread [Next in Thread]