import/print: package->code: Wrap S-expression in definition.
* guix/import/print.scm (package->code): Return a definition, not just a package expression.
This commit is contained in:
parent
c893432320
commit
86a3b540d0
|
@ -121,7 +121,8 @@ (define (package-lists->code lsts)
|
|||
(home-page (package-home-page package))
|
||||
(supported-systems (package-supported-systems package))
|
||||
(properties (package-properties package)))
|
||||
`(package
|
||||
`(define-public ,(string->symbol name)
|
||||
(package
|
||||
(name ,name)
|
||||
(version ,version)
|
||||
(source ,(source->code source version))
|
||||
|
@ -163,4 +164,4 @@ (define (package-lists->code lsts)
|
|||
(description ,description)
|
||||
(license ,(if (list? license)
|
||||
`(list ,@(map license->code license))
|
||||
(license->code license))))))
|
||||
(license->code license)))))))
|
||||
|
|
Loading…
Reference in a new issue