* hydra/build-package-metadata.scm (write-json): Use
‘call-with-gzip-output-port’.
(main): Append “.gz” to JSON file names.
* hydra/modules/sysadmin/nginx.scm (guix.gnu.org-other-locations): Add
“gzip_static” and “gunzip” directives on /packages.json and
/sources.json.
Suggested by Simon Tournier <zimon.toutoune@gmail.com> in
<https://lists.gnu.org/archive/html/guix-devel/2023-04/msg00029.html>.
* hydra/build-package-metadata.scm (%content-addressed-mirrors): New variable.
(origin->json)[resolve]: Add 'hash' parameter; when true, add a list of
content-addressed URLs.
Update caller.
This program produces the 'packages.json' and 'sources.json' files that
are published at https://guix.gnu.org.
So far those files were built as part of the web site's build process,
via Haunt. This script is adapted from the (apps packages builder)
module of the web site.
* hydra/build-package-metadata.scm: New file.