1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-24 01:51:51 +02:00

build-system/channel: Accept a channel or instance as the source.

* guix/build-system/channel.scm (latest-channel-instances*): New
variable.
(build-channels): New procedure, with code formerly in
'channel-build-system', augmented with clauses for when SOURCE is a
channel instance or a channel.
* doc/guix.texi (Build Systems): Adjust accordingly.
This commit is contained in:
Ludovic Courtès
2022-08-08 23:06:11 +02:00
parent 5bce4c8242
commit cf60a0a906
2 changed files with 41 additions and 24 deletions
+8 -4
View File
@@ -9571,10 +9571,14 @@ with @code{build-expression->derivation} (@pxref{Derivations,
@defvr {Scheme Variable} channel-build-system
This variable is exported by @code{(guix build-system channel)}.
This build system is meant primarily for internal use. It requires two
arguments, @code{#:commit} and @code{#:source}, and builds a Guix
instance from that channel, in the same way @command{guix time-machine}
would do it (@pxref{Channels}).
This build system is meant primarily for internal use. A package using
this build system must have a channel specification as its @code{source}
field (@pxref{Channels}); alternatively, its source can be a directory
name, in which case an additional @code{#:commit} argument must be
supplied to specify the commit being built (a hexadecimal string).
The resulting package is a Guix instance of the given channel, similar
to how @command{guix time-machine} would build it.
@end defvr
@node Build Phases