3
4
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

import: hackage: Accept optional version parameter.

* guix/import/hackage.scm (hackage-recursive-import): Add the VERSION key.
  Make REPO a key.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Xinglu Chen 2021-02-28 17:18:34 +01:00 committed by Ludovic Courtès
parent f293705d7e
commit af978312e5
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -344,8 +344,8 @@ respectively."
(memoize hackage->guix-package))
(define* (hackage-recursive-import package-name . args)
(recursive-import package-name #f
#:repo->guix-package (lambda (name repo)
(recursive-import package-name
#:repo->guix-package (lambda* (name #:key repo version)
(apply hackage->guix-package/m
(cons name args)))
#:guix-name hackage-name->package-name))