summaryrefslogtreecommitdiff
path: root/guix/import/hackage.scm
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-02-28 17:18:34 +0100
committerLudovic Courtès <ludo@gnu.org>2021-03-01 17:45:51 +0100
commitaf978312e5f7a90fd535a68078632848068d90e6 (patch)
tree5d89a9ff080fcd395f90f1fbf3cd9f8cb82e0444 /guix/import/hackage.scm
parentf293705d7e3202c1214875b5afedadadb065245c (diff)
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>
Diffstat (limited to 'guix/import/hackage.scm')
-rw-r--r--guix/import/hackage.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/import/hackage.scm b/guix/import/hackage.scm
index 6ca4f65cb0..9f992ffe8e 100644
--- a/guix/import/hackage.scm
+++ b/guix/import/hackage.scm
@@ -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))