offload: Modify the build-machine record to accept multiple systems.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 24 Aug 2020 20:26:14 +0000 (16:26 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 25 Aug 2020 17:45:27 +0000 (13:45 -0400)
commit4b5a6fbc9b754c0ca70d033dd99f17c4f028733a
tree7e1267a5ab1edc10d1b4dd71e51a80f17c8fba36
parenta5ccf1b522b443fa2aab79a4833810bdede4a9ff
offload: Modify the build-machine record to accept multiple systems.

* guix/scripts/offload.scm (<build-machine>)[systems]: New field.
[system]: Accessor changed to %build-machine-system.  Default to #f.
* guix/scripts/offload.scm (build-machine-system): Wrap %build-machine-system
with a deprecation warning.
(build-machine-systems): Access the new systems field or fallback to use
build-machine-system, for backward compatibility.
(machine-matches?): Adjust.
* tests/offload.scm: Add tests...
* Makefile.am (SCM_TESTS): ...and register them.
* doc/guix.texi (Daemon Offload Setup): Update doc.
Makefile.am
doc/guix.texi
guix/scripts/offload.scm
tests/offload.scm [new file with mode: 0644]