guix: import: opam: Use a default repository.

* guix/import/opam.scm (opam->guix-package): Use a default value for
`repository`.
This commit is contained in:
Julien Lepiller 2020-03-17 00:05:32 +01:00
parent 19b7d41d34
commit 06f0453ad2
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -250,7 +250,7 @@ (define* (opam-fetch name #:optional (repository (get-opam-repository)))
(substring version 1)
version)))))
(define* (opam->guix-package name #:key repository)
(define* (opam->guix-package name #:key (repository (get-opam-repository)))
"Import OPAM package NAME from REPOSITORY (a directory name) or, if
REPOSITORY is #f, from the official OPAM repository. Return a 'package' sexp
or #f on failure."