pull: Install the new Guix in a profile.
authorLudovic Courtès <ludo@gnu.org>
Wed, 30 May 2018 15:50:21 +0000 (17:50 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 9 Jun 2018 10:02:27 +0000 (12:02 +0200)
commit75e24d7b0e19ab2164aecb340e82d07d2b9714e7
tree7e46b4d70532dc16482c57f94b6257b42600c04b
parent8a0d9bc8a3f153159d9e239a151c0fa98f1e12d8
pull: Install the new Guix in a profile.

* guix/scripts/pull.scm (%pull-version): New variable.
(build-from-source): Pass #:pull-version to BUILD.
(whole-package-for-legacy, derivation->manifest-entry): New procedure.
(build-and-install): Rewrite in terms of 'build-and-use-profile'.
* guix/scripts/system.scm (maybe-suggest-running-guix-pull)[latest]:
Switch to "/current".
* scripts/guix.in (augment-load-paths!): Remove use of
~/.config/guix/latest.
* build-aux/compile-as-derivation.scm: Replace "/guix/latest/" with
"/current/share/guile/site/X.Y"
* guix/scripts.scm (warn-about-old-distro)[age]: Check "/current"
instead of "/latest".
* doc/guix.texi (Invoking guix pull): Document it.
* doc/contributing.texi (Running Guix Before It Is Installed): Remove
footnote about abusing ~/.config/guix/latest.
build-aux/compile-as-derivation.scm
doc/contributing.texi
doc/guix.texi
guix/scripts.scm
guix/scripts/pull.scm
guix/scripts/system.scm
scripts/guix.in