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
1 changed files with 44 additions and 43 deletions
|
@ -121,7 +121,8 @@ when evaluated."
|
||||||
(home-page (package-home-page package))
|
(home-page (package-home-page package))
|
||||||
(supported-systems (package-supported-systems package))
|
(supported-systems (package-supported-systems package))
|
||||||
(properties (package-properties package)))
|
(properties (package-properties package)))
|
||||||
`(package
|
`(define-public ,(string->symbol name)
|
||||||
|
(package
|
||||||
(name ,name)
|
(name ,name)
|
||||||
(version ,version)
|
(version ,version)
|
||||||
(source ,(source->code source version))
|
(source ,(source->code source version))
|
||||||
|
@ -163,4 +164,4 @@ when evaluated."
|
||||||
(description ,description)
|
(description ,description)
|
||||||
(license ,(if (list? license)
|
(license ,(if (list? license)
|
||||||
`(list ,@(map license->code license))
|
`(list ,@(map license->code license))
|
||||||
(license->code license))))))
|
(license->code license)))))))
|
||||||
|
|
Reference in a new issue