diff options
| -rw-r--r-- | config-daemon.ac | 7 | ||||
| -rw-r--r-- | etc/guix-daemon.conf.in | 2 | ||||
| -rw-r--r-- | etc/guix-daemon.service.in | 3 | ||||
| -rw-r--r-- | etc/init.d/guix-daemon.in | 4 | ||||
| -rw-r--r-- | nix/local.mk | 17 |
5 files changed, 20 insertions, 13 deletions
diff --git a/config-daemon.ac b/config-daemon.ac index 9188f93bda8..9854f1d694f 100644 --- a/config-daemon.ac +++ b/config-daemon.ac | |||
| @@ -106,12 +106,13 @@ if test "x$guix_build_daemon" = "xyes"; then | |||
| 106 | 106 | ||
| 107 | dnl Determine the appropriate default list of substitute URLs (GnuTLS | 107 | dnl Determine the appropriate default list of substitute URLs (GnuTLS |
| 108 | dnl is required so we can default to 'https'.) | 108 | dnl is required so we can default to 'https'.) |
| 109 | guix_substitute_urls="https://bordeaux.guix.gnu.org https://ci.guix.gnu.org" | 109 | GUIX_SUBSTITUTE_URLS="https://bordeaux.guix.gnu.org https://ci.guix.gnu.org" |
| 110 | 110 | ||
| 111 | AC_MSG_CHECKING([for default substitute URLs]) | 111 | AC_MSG_CHECKING([for default substitute URLs]) |
| 112 | AC_MSG_RESULT([$guix_substitute_urls]) | 112 | AC_MSG_RESULT([$GUIX_SUBSTITUTE_URLS]) |
| 113 | AC_SUBST([GUIX_SUBSTITUTE_URLS]) | ||
| 113 | 114 | ||
| 114 | AC_DEFINE_UNQUOTED([GUIX_SUBSTITUTE_URLS], ["$guix_substitute_urls"], | 115 | AC_DEFINE_UNQUOTED([GUIX_SUBSTITUTE_URLS], ["$GUIX_SUBSTITUTE_URLS"], |
| 115 | [Default list of substitute URLs used by 'guix-daemon'.]) | 116 | [Default list of substitute URLs used by 'guix-daemon'.]) |
| 116 | 117 | ||
| 117 | dnl Check for Guile-SSH, which is required by 'guix offload'. | 118 | dnl Check for Guile-SSH, which is required by 'guix offload'. |
diff --git a/etc/guix-daemon.conf.in b/etc/guix-daemon.conf.in index fb681d1f802..aa368d6272c 100644 --- a/etc/guix-daemon.conf.in +++ b/etc/guix-daemon.conf.in | |||
| @@ -7,4 +7,4 @@ start on runlevel [2345] | |||
| 7 | 7 | ||
| 8 | stop on runlevel [016] | 8 | stop on runlevel [016] |
| 9 | 9 | ||
| 10 | exec @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild --discover=no | 10 | exec @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild --discover=no --substitute-urls='@GUIX_SUBSTITUTE_URLS@' |
diff --git a/etc/guix-daemon.service.in b/etc/guix-daemon.service.in index 5e75379b5e4..5c43d9b7f1b 100644 --- a/etc/guix-daemon.service.in +++ b/etc/guix-daemon.service.in | |||
| @@ -7,7 +7,8 @@ Description=Build daemon for GNU Guix | |||
| 7 | 7 | ||
| 8 | [Service] | 8 | [Service] |
| 9 | ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \ | 9 | ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \ |
| 10 | --build-users-group=guixbuild --discover=no | 10 | --build-users-group=guixbuild --discover=no \ |
| 11 | --substitute-urls='@GUIX_SUBSTITUTE_URLS@' | ||
| 11 | Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8 | 12 | Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8 |
| 12 | StandardOutput=journal | 13 | StandardOutput=journal |
| 13 | StandardError=journal | 14 | StandardError=journal |
diff --git a/etc/init.d/guix-daemon.in b/etc/init.d/guix-daemon.in index b7d4bb72bbb..913210a5434 100644 --- a/etc/init.d/guix-daemon.in +++ b/etc/init.d/guix-daemon.in | |||
| @@ -36,7 +36,9 @@ start) | |||
| 36 | -E LC_ALL=en_US.utf8 \ | 36 | -E LC_ALL=en_US.utf8 \ |
| 37 | -p "/var/run/guix-daemon.pid" \ | 37 | -p "/var/run/guix-daemon.pid" \ |
| 38 | @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \ | 38 | @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \ |
| 39 | --build-users-group=guixbuild --discover=no | 39 | --build-users-group=guixbuild --discover=no \ |
| 40 | --substitute-urls='@GUIX_SUBSTITUTE_URLS@' | ||
| 41 | |||
| 40 | fi | 42 | fi |
| 41 | ;; | 43 | ;; |
| 42 | stop) | 44 | stop) |
diff --git a/nix/local.mk b/nix/local.mk index 44a26dd2c8f..8a2b2b88e86 100644 --- a/nix/local.mk +++ b/nix/local.mk | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # GNU Guix --- Functional package management for GNU | 1 | # GNU Guix --- Functional package management for GNU |
| 2 | # Copyright © 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> | 2 | # Copyright © 2012-2016, 2018-2020, 2024 Ludovic Courtès <ludo@gnu.org> |
| 3 | # Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> | 3 | # Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> |
| 4 | # Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | # Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | # | 5 | # |
| @@ -166,8 +166,9 @@ etc/%.mount: etc/%.mount.in \ | |||
| 166 | etc/guix-%.service: etc/guix-%.service.in \ | 166 | etc/guix-%.service: etc/guix-%.service.in \ |
| 167 | $(top_builddir)/config.status | 167 | $(top_builddir)/config.status |
| 168 | $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ | 168 | $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ |
| 169 | $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' < \ | 169 | $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' \ |
| 170 | "$<" > "$@.tmp"; \ | 170 | -e 's|@''GUIX_SUBSTITUTE_URLS''@|$(GUIX_SUBSTITUTE_URLS)|' \ |
| 171 | < "$<" > "$@.tmp"; \ | ||
| 171 | mv "$@.tmp" "$@" | 172 | mv "$@.tmp" "$@" |
| 172 | 173 | ||
| 173 | # The service script for sysvinit. | 174 | # The service script for sysvinit. |
| @@ -177,8 +178,9 @@ nodist_sysvinitservice_DATA = etc/init.d/guix-daemon | |||
| 177 | etc/init.d/guix-daemon: etc/init.d/guix-daemon.in \ | 178 | etc/init.d/guix-daemon: etc/init.d/guix-daemon.in \ |
| 178 | $(top_builddir)/config.status | 179 | $(top_builddir)/config.status |
| 179 | $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ | 180 | $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ |
| 180 | $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' < \ | 181 | $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' \ |
| 181 | "$<" > "$@.tmp"; \ | 182 | -e 's|@''GUIX_SUBSTITUTE_URLS''@|$(GUIX_SUBSTITUTE_URLS)|' \ |
| 183 | < "$<" > "$@.tmp"; \ | ||
| 182 | mv "$@.tmp" "$@" | 184 | mv "$@.tmp" "$@" |
| 183 | 185 | ||
| 184 | # The service script for openrc. | 186 | # The service script for openrc. |
| @@ -199,8 +201,9 @@ nodist_upstartjob_DATA = etc/guix-daemon.conf etc/guix-publish.conf | |||
| 199 | etc/guix-%.conf: etc/guix-%.conf.in \ | 201 | etc/guix-%.conf: etc/guix-%.conf.in \ |
| 200 | $(top_builddir)/config.status | 202 | $(top_builddir)/config.status |
| 201 | $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ | 203 | $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ |
| 202 | $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' < \ | 204 | $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' \ |
| 203 | "$<" > "$@.tmp"; \ | 205 | -e 's|@''GUIX_SUBSTITUTE_URLS''@|$(GUIX_SUBSTITUTE_URLS)|' \ |
| 206 | < "$<" > "$@.tmp"; \ | ||
| 204 | mv "$@.tmp" "$@" | 207 | mv "$@.tmp" "$@" |
| 205 | 208 | ||
| 206 | CLEANFILES += \ | 209 | CLEANFILES += \ |
