summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorCsepp <raingloom@riseup.net>2023-03-21 23:59:52 +0100
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-12 08:29:27 -0400
commit571907c362602a20fed8f0bd53d581dd698dd187 (patch)
treed6afadf3e565fe0636ffe17445bf8d5b1bd31888 /guix
parent29e2e7135de4887baf5cc9174065eeac4ea2c64e (diff)
import: opam: opam->guix-package: Fix default repo argument.
* guix/import/opam.scm (opam->guix-package): Make default repo a list of strings. Update docstring. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix')
-rw-r--r--guix/import/opam.scm7
1 files changed, 3 insertions, 4 deletions
diff --git a/guix/import/opam.scm b/guix/import/opam.scm
index eed68e7a93..e67146e593 100644
--- a/guix/import/opam.scm
+++ b/guix/import/opam.scm
@@ -336,10 +336,9 @@ path to the repository."
(sha256 (base32 ,(guix-hash-url temp)))))))
'no-source-information)))
-(define* (opam->guix-package name #:key (repo 'opam) version #:allow-other-keys)
- "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."
+(define* (opam->guix-package name #:key (repo '("opam")) version #:allow-other-keys)
+ "Import OPAM package NAME from REPO, a list of repository names, URLs, or
+file names. Return a 'package' sexp or #f on failure."
(and-let* ((with-opam (if (member "opam" repo) repo (cons "opam" repo)))
(opam-file (opam-fetch name with-opam))
(version (assoc-ref opam-file "version"))