Next: , Previous: , Up: substitutes   [Contents][Index]

5.3.2 授权substitute服务器。

To allow Guix to download substitutes from or a mirror thereof, you must add its public key to the access control list (ACL) of archive imports, using the guix archive command (see 调用guix archive). Doing so implies that you trust to not be compromised and to serve genuine substitutes.

注: If you are using Guix System, you can skip this section: Guix System authorizes substitutes from by default.

The public key for is 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-1.3.0.tar.gz, which contains this public key file. Then, you can run something like this:

# guix archive --authorize < prefix/share/guix/

Once this is in place, the output of a command like guix build should change from something like:

$ guix build emacs --dry-run
The following derivations would be built:

to something like:

$ guix build emacs --dry-run
112.3 MB would be downloaded:

The text changed from “The following derivations would be built” to “112.3 MB would be downloaded”. This indicates that substitutes from are usable and will be downloaded, when possible, for future builds.

The substitute mechanism can be disabled globally by running guix-daemon with --no-substitutes (see 调用guix-daemon). It can also be disabled temporarily by passing the --no-substitutes option to guix package, guix build, and other command-line tools.

Next: , Previous: , Up: substitutes   [Contents][Index]