guix: import: opam: Handle list of licenses.
Fixes <https://issues.guix.gnu.org/issue/66461>. Reported by Simon Tournier <zimon.toutoune@gmail.com>. * guix/import/opam.scm (opam->guix-package): Handle lists of licenses. Signed-off-by: Simon Tournier <zimon.toutoune@gmail.com>
parent
daaebc6457
commit
dcc5c34504
|
@ -379,8 +379,10 @@ file names. Return a 'package' sexp or #f on failure."
|
||||||
(synopsis ,(metadata-ref opam-content "synopsis"))
|
(synopsis ,(metadata-ref opam-content "synopsis"))
|
||||||
(description ,(and=> (metadata-ref opam-content "description")
|
(description ,(and=> (metadata-ref opam-content "description")
|
||||||
beautify-description))
|
beautify-description))
|
||||||
(license ,(spdx-string->license
|
(license ,(match (metadata-ref opam-content "license")
|
||||||
(metadata-ref opam-content "license"))))
|
((('string-pat strs) ...)
|
||||||
|
`(list ,@(map spdx-string->license strs)))
|
||||||
|
((? string? str) (spdx-string->license str)))))
|
||||||
(filter
|
(filter
|
||||||
(lambda (name)
|
(lambda (name)
|
||||||
(not (member name '("dune" "jbuilder"))))
|
(not (member name '("dune" "jbuilder"))))
|
||||||
|
|
Reference in New Issue