summaryrefslogtreecommitdiff
path: root/guix/import/utils.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/import/utils.scm')
-rw-r--r--guix/import/utils.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/guix/import/utils.scm b/guix/import/utils.scm
index 5fb1322535..3809c3d074 100644
--- a/guix/import/utils.scm
+++ b/guix/import/utils.scm
@@ -322,6 +322,11 @@ specifications to look up and replace them with plain symbols instead."
known-inputs)))
(append (specs->package-lists regular)
(map string->symbol known))))
+ (define (process-arguments arguments)
+ (append-map (match-lambda
+ ((key . value)
+ (list (symbol->keyword (string->symbol key)) value)))
+ arguments))
(package
(name (assoc-ref meta "name"))
(version (assoc-ref meta "version"))
@@ -329,6 +334,10 @@ specifications to look up and replace them with plain symbols instead."
(build-system
(lookup-build-system-by-name
(string->symbol (assoc-ref meta "build-system"))))
+ (arguments
+ (or (and=> (assoc-ref meta "arguments")
+ process-arguments)
+ '()))
(native-inputs (process-inputs "native-inputs"))
(inputs (process-inputs "inputs"))
(propagated-inputs (process-inputs "propagated-inputs"))