pull: Build with the matching Guile major version.
authorLudovic Courtès <ludo@gnu.org>
Tue, 9 May 2017 15:04:02 +0000 (17:04 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 9 May 2017 16:08:24 +0000 (18:08 +0200)
commit838ba73d6e49bd2b1f2d4ed9329b65cc4e8c1f54
tree85064ce205b7a1b441760c40f5c034446e717c23
parent75c260ba5ae7baec44d2b5bf6ae57734eeebcd2f
pull: Build with the matching Guile major version.

Previously, 'guix pull' would always build with Guile 2.0.
Now it builds with the Guile that matches (effective-version).

* build-aux/build-self.scm (false-if-wrong-guile)
(package-for-current-guile): New procedures.
(guile-json, guile-ssh): Use it.
(guile-for-build): New procedure.
(build): Use (effective-version) instead of the hard-coded "/2.0".
Add (guix modules) closure to #:modules argument.  Pass
\#:guile-for-build argument to 'gexp->derivation'.
* guix/build/pull.scm (depends-on-guile-ssh?, all-scheme-files): New
procedures.
(build-guix): Show the output of (version).  Use the above procedures.
Filter out files that match 'depends-on-guile-ssh?' when (ssh session)
is missing.
build-aux/build-self.scm
guix/build/pull.scm