import/print: package->code: Wrap build system value in module reference.

* guix/import/print.scm (package->code): Return build system value with
corresponding module.
This commit is contained in:
Ricardo Wurmus 2020-04-14 17:24:09 +02:00
parent 1475d45112
commit 6269dd567e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -131,8 +131,9 @@ (define (package-lists->code lsts)
,@(if replacement
`((replacement ,replacement))
'())
(build-system ,(symbol-append (build-system-name build-system)
'-build-system))
(build-system (@ (guix build-system ,(build-system-name build-system))
,(symbol-append (build-system-name build-system)
'-build-system)))
,@(match arguments
(() '())
(args `((arguments ,(list 'quasiquote args)))))