summary refs log tree commit diff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-03-17 00:05:32 +0100
committerJulien Lepiller <julien@lepiller.eu>2020-03-17 00:06:23 +0100
commit06f0453ad27c92633d3630dbe49a16dcb0281d04 (patch)
tree700152beaaa2310af6efd580682d6114e15b3764
parent19b7d41d3407d2e3c64edffa37042551e06c4b07 (diff)
downloadguix-06f0453ad27c92633d3630dbe49a16dcb0281d04.tar.gz
guix: import: opam: Use a default repository.
* guix/import/opam.scm (opam->guix-package): Use a default value for
`repository`.
-rw-r--r--guix/import/opam.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/import/opam.scm b/guix/import/opam.scm
index 394415fdd4..ae7df8a8b5 100644
--- a/guix/import/opam.scm
+++ b/guix/import/opam.scm
@@ -250,7 +250,7 @@ path to the 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."