This JSON swh.lister downloads a JSON file containing a list of.functionalPackages: add lister getting sources from a JSON file
sources to create loader tasks. This input file looks like:
[
This lister downloads a JSON file containing a list of sources
provided by the NixOS and Guix distribution. This file looks like:
{'name':
{
'hello-2.10.tar.gz',"version": 1
'"source': {s": [
'type': 'url',{
'integrity': 'sha256-MeBmE3qWJnbon2nRtlOC3pWn732RS4y5VvQepy4PUWs=', "type": "url",
"url": "https://ftpmirror.gnu.org//hello/hello-2.10.tar.gz"
'url': 'https://ftpmirror.gnu.org//hello/hello-2.10.tar.gz'}
}],
}
]
The `integrity` attribute is a checksum of the content specified with
the SRI format (see https://www.w3.org/TR/SRI). It is currently used
as an index in the lister JSON table but can be omitted. In this case,
the url is used instead.
This is a work in progress lister and we need to work on several points:
- [x] define a JSON format
- [] expose the JSON file from a NixOS community managed server (edit(lewo): i'm working on this)
- [] make a working loader! (wip in D2145) (edited by ardumont: not mandatory to land)