svg: Autoload Guile-RSVG and Guile-Cairo.
Fixes compilation by 'guix pull' where Guile-{RSVG,Cairo} are missing. Reported by Efraim Flashner. * gnu/build/svg.scm: Use 'module-autoload!' rather than 'module-use!'.
This commit is contained in:
parent
e9a19bde40
commit
8ce84bf1f5
|
@ -22,9 +22,11 @@
|
||||||
#:export (svg->png))
|
#:export (svg->png))
|
||||||
|
|
||||||
;; We need Guile-RSVG and Guile-Cairo. Load them lazily, at run time, to
|
;; We need Guile-RSVG and Guile-Cairo. Load them lazily, at run time, to
|
||||||
;; allow compilation to proceed.
|
;; allow compilation to proceed. See also <http://bugs.gnu.org/12202>.
|
||||||
(module-use! (current-module) (resolve-interface '(rsvg)))
|
(module-autoload! (current-module)
|
||||||
(module-use! (current-module) (resolve-interface '(cairo)))
|
'(rsvg) '(rsvg-handle-new-from-file))
|
||||||
|
(module-autoload! (current-module)
|
||||||
|
'(cairo) '(cairo-image-surface-create))
|
||||||
|
|
||||||
(define* (downscaled-surface surface
|
(define* (downscaled-surface surface
|
||||||
#:key
|
#:key
|
||||||
|
|
Loading…
Reference in New Issue