me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/gnu/installer
Ludovic Courtès 81c3dc3224
maint: Switch to Guile-JSON 3.x.
Guile-JSON 3.x is incompatible with Guile-JSON 1.x, which we relied on
until now: it maps JSON dictionaries to alists (instead of hash tables),
and JSON arrays to vectors (instead of lists).  This commit is about
adjusting all the existing code to this new mapping.

* m4/guix.m4 (GUIX_CHECK_GUILE_JSON): New macro.
* configure.ac: Use it.
* doc/guix.texi (Requirements): Mention the Guile-JSON version.
* guix/git-download.scm (git-fetch)[guile-json]: Use GUILE-JSON-3.
* guix/import/cpan.scm (string->license): Expect vectors instead of
lists.
(module->dist-name): Use 'json-fetch' instead of 'json-fetch-alist'.
(cpan-fetch): Likewise.
* guix/import/crate.scm (crate-fetch): Likewise, and call 'vector->list'
for DEPS.
* guix/import/gem.scm (rubygems-fetch): Likewise.
* guix/import/json.scm (json-fetch-alist): Remove.
* guix/import/pypi.scm (pypi-fetch): Use 'json-fetch' instead of
'json-fetch-alist'.
(latest-source-release, latest-wheel-release): Call 'vector->list' on
RELEASES.
* guix/import/stackage.scm (stackage-lts-info-fetch): Use 'json-fetch'
instead of 'json-fetch-alist'.
(lts-package-version): Use 'vector->list'.
* guix/import/utils.scm (hash-table->alist): Remove.
(alist->package): Pass 'vector->list' on the inputs fields, and default
to the empty vector.
* guix/scripts/import/json.scm (guix-import-json): Remove call to
'hash-table->alist'.
* guix/swh.scm (define-json-reader): Expect pair? or null? instead of
hash-table?.
[extract-field]: Use 'assoc-ref' instead of 'hash-ref'.
(json->branches): Use 'map' instead of 'hash-map->list'.
(json->checksums): Likewise.
(json->directory-entries, origin-visits): Call 'vector->list' on the
result of 'json->scm'.
* tests/import-utils.scm ("alist->package with dependencies"): New test.
* gnu/installer.scm (build-compiled-file)[builder]: Use GUILE-JSON-3.
* gnu/installer.scm (installer-program)[installer-builder]: Likewise.
* gnu/installer/locale.scm (iso639->iso639-languages): Use 'assoc-ref'
instead of 'hash-ref', and pass vectors through 'vector->list'.
(iso3166->iso3166-territories): Likewise.
* gnu/system/vm.scm (system-docker-image)[build]: Use GUILE-JSON-3.
* guix/docker.scm (manifest, config): Adjust for Guile-JSON 3.
* guix/scripts/pack.scm (docker-image)[build]: Use GUILE-JSON-3.
* guix/import/github.scm (fetch-releases-or-tags): Update docstring.
(latest-released-version): Use 'assoc-ref' instead of 'hash-ref'.  Pass
the result of 'fetch-releases-or-tags' to 'vector->list'.
* guix/import/launchpad.scm (latest-released-version): Likewise.
2019-07-25 00:16:41 +02:00
..
aux-files installer: Use 'glibc-supported-locales'. 2019-05-13 23:46:08 +02:00
newt installer: Fix typo. 2019-06-08 02:30:25 +02:00
connman.scm installer: Fix wifi menu crash with hidden SSIDs. 2019-05-29 11:44:49 +02:00
final.scm installer: User accounts can now have a "real name." 2019-04-28 22:57:07 +02:00
hostname.scm installer: Add hostname. 2019-01-17 14:04:23 +01:00
keymap.scm installer: Parse the 'shortDescription' field from xkeyboard-config. 2019-04-17 15:13:31 +02:00
locale.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
newt.scm installer: Clear screen upon exit. 2019-01-17 14:04:26 +01:00
parted.scm installer: Always add '%base-initrd-modules' to 'initrd-modules'. 2019-06-05 17:27:22 +02:00
record.scm installer: Add partitioning support. 2019-01-17 14:04:24 +01:00
services.scm installer: Install xterm alongside ratpoison. 2019-06-07 22:32:19 +02:00
steps.scm installer: Actually translate step descriptions. 2019-05-06 23:21:33 +02:00
timezone.scm gnu: Fix some typos in the installer. 2019-02-18 01:52:47 +01:00
user.scm installer: User can have a "real name". 2019-04-28 22:57:07 +02:00
utils.scm installer: Take 'guix system init' exit code into account. 2019-04-26 14:19:36 +02:00