diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-09-30 22:38:57 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-10-02 17:04:50 +0200 |
commit | 46d15af4cb913d135c6e16c8cb713058aa9e2691 (patch) | |
tree | 11dfbf555528a4226623305130051c5722a3c005 /tests/hackage.scm | |
parent | 21aeb62437ebb92eff55521707295f25a65a2f44 (diff) |
import: stackage: Use 'define-json-mapping'.
* guix/import/stackage.scm (<stackage-lts>, <snapshot>)
(<stackage-package>): New record types and JSON mappings.
(lts-info-packages, stackage-package-name)
(stackage-package-version): Remove.
(lts-package-version): Rename 'pkgs-info' to 'packages'; assume
'packages' is a list of <stackage-package>.
(stackage->guix-package): Use 'stackage-lts-packages' instead of
'lts-info-packages'. Rename 'packages-info' to 'packages'.
(latest-lts-release): Likewise.
(stackage-package?): Rename to...
(stackage-lts-package?): ... this. Adjust to new API.
(%stackage-updater)[pred]: Update accordingly.
* tests/lint.scm ("haskell-stackage"): Add "snapshot" entry in JSON
snippet.
Diffstat (limited to 'tests/hackage.scm')
0 files changed, 0 insertions, 0 deletions