me
/
guix
Archived
1
0
Fork 0

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>
master
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
1 changed files with 2 additions and 2 deletions

View File

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