import: Add hex.pm importer.

hex.pm is a package repository for Erlang and Elixir.

* guix/scripts/import.scm (importers): Add "hexpm".
* guix/scripts/import/hexpm.scm, guix/import/hexpm.scm,
  guix/hexpm-download.scm: New files.
* guix/import/utils.scm (source-spec->object): Add "hexpm-fetch" to list of
  fetch methods.
* guix/upstream.scm (package-update/hexpm-fetch): New function.
  (%method-updates) Add it.
* Makefile.am: Add them.
This commit is contained in:
Hartmut Goebel 2022-03-04 19:32:32 +01:00
parent 97586ca1cb
commit 0d9f1f15cb
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF
8 changed files with 755 additions and 5 deletions

View file

@ -50,7 +50,7 @@
(define importers '("gnu" "pypi" "cpan" "hackage" "stackage" "egg" "elpa"
"gem" "go" "cran" "crate" "texlive" "json" "opam"
"minetest" "elm"))
"minetest" "elm" "hexpm"))
(define (resolve-importer name)
(let ((module (resolve-interface