profiles: Support the creation of profiles with version 3 manifests.
authorLudovic Courtès <ludo@gnu.org>
Fri, 8 Jul 2022 10:26:50 +0000 (12:26 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 8 Jul 2022 21:58:11 +0000 (23:58 +0200)
commit89e22887510ba5d546a4d7e391462e648942a7b6
treecee8ae3249134f41a04c6f91d5cbca31651396a4
parente7e04396c0e91569bf493e1352d6539babc15327
profiles: Support the creation of profiles with version 3 manifests.

* guix/profiles.scm (%manifest-format-version): New variable.
(manifest->gexp): Add optional 'format-version' parameter.
[optional, entry->gexp]: Honor it.
(profile-derivation): Add #:format-version parameter and honor it.
(<profile>)[format-version]: New field.
(profile-compiler): Honor it.
* guix/build/profiles.scm (manifest-sexp->inputs+search-paths): Support
both versions 3 and 4.  Remove unused 'properties' variable.
* tests/profiles.scm ("profile-derivation format version 3"): New test.
guix/build/profiles.scm
guix/profiles.scm
tests/profiles.scm