Next: Obtención de sustiticiones desde otros servidores, Previous: Official Substitute Servers, Up: Sustituciones [Contents][Index]
To allow Guix to download substitutes from
bordeaux.guix.gnu.org
, ci.guix.gnu.org
or a
mirror, you must add the relevant public key to the access control list
(ACL) of archive imports, using the guix archive
command
(see Invocación de guix archive
). Doing so implies that you trust the
substitute server to not be compromised and to serve genuine substitutes.
Nota: If you are using Guix System, you can skip this section: Guix System authorizes substitutes from
bordeaux.guix.gnu.org
andci.guix.gnu.org
by default.
The public keys for each of the project maintained substitute servers are
installed along with Guix, in prefix/share/guix/
, where
prefix is the installation prefix of Guix. If you installed Guix from
source, make sure you checked the GPG signature of
guix-1592f1a.tar.gz, which contains this public key file.
Then, you can run something like this:
# guix archive --authorize < prefix/share/guix/bordeaux.guix.gnu.org.pub # guix archive --authorize < prefix/share/guix/ci.guix.gnu.org.pub
Una vez esté autorizada, la salida de una orden como guix build
debería cambiar de algo como:
$ guix build emacs --dry-run Se construirían las siguientes derivaciones: /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv …
a algo así:
$ guix build emacs --dry-run Se descargarían 112.3 MB: /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3 /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16 /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7 …
The text changed from “The following derivations would be built” to “112.3 MB would be downloaded”. This indicates that substitutes from the configured substitute servers are usable and will be downloaded, when possible, for future builds.
El mecanismo de sustituciones puede ser desactivado globalmente ejecutando
guix-daemon
con --no-subsitutes (see Invocación de guix-daemon
). También puede ser desactivado temporalmente pasando la opción
--no-substitutes a guix package
, guix build
y
otras herramientas de línea de órdenes.
Next: Obtención de sustiticiones desde otros servidores, Previous: Official Substitute Servers, Up: Sustituciones [Contents][Index]