ci: Use a valid 'current-guix'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 19 Jan 2019 23:20:34 +0000 (00:20 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 20 Jan 2019 00:42:11 +0000 (01:42 +0100)
commit7e6d8d366a61f951936ed83371877ce006f679f6
tree76f2bdc2143775643fa3cebf27af684caaddcbff
parent38b77f34640ff8a491913d29abcd16a846f2d0e4
ci: Use a valid 'current-guix'.

This fixes a regression introduced in
b5f8c2c88543158e8aca76aa98f9009f6b9e743a whereby 'current-guix' (needed
by some of the system tests) would fail to build.
Reported by Ricardo Wurmus <rekado@elephly.net>.

It also speeds up compilation of 'current-guix' since the channel
instance is already compiled or can be built quickly compared to the
default 'current-guix'.

* gnu/packages/package-management.scm (current-guix-package): New
variable.
(current-guix): Honor it.
* gnu/ci.scm (channel-build-system): New variable.
(channel-instances->derivation): New procedure.
(system-test-jobs): Add #:source and #:commit parameters.
Define 'instance' and parameterize CURRENT-GUIX-PACKAGE.
(hydra-jobs)[checkout, commit, source]: New variables.
Pass #:source and #:commit to 'system-test-jobs'.
gnu/ci.scm
gnu/packages/package-management.scm