diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2018-05-28 21:47:01 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2018-06-01 15:21:28 +0200 |
| commit | 33d8a871042e73d6b236793d02e5a8287a47ebe4 (patch) | |
| tree | 1b9286fea56e63450b875b509af9cec46a3725f6 /gnu/bootloader | |
| parent | 31a5d694a3b9200bfde253eafbaca118b773fb96 (diff) | |
bootloader: grub: Use 'with-extensions'.
* gnu/bootloader/grub.scm (svg->png): Use 'with-extensions'. Remove
'add-to-load-path' calls.
* gnu/build/svg.scm: Use (rsvg) and (cairo) the normal way. Remove
'module-autoload!' calls.
Diffstat (limited to 'gnu/bootloader')
| -rw-r--r-- | gnu/bootloader/grub.scm | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm index e90a6a11eb2..a131f3b5062 100644 --- a/gnu/bootloader/grub.scm +++ b/gnu/bootloader/grub.scm | |||
| @@ -123,19 +123,12 @@ otherwise." | |||
| 123 | "Build a PNG of HEIGHT x WIDTH from SVG." | 123 | "Build a PNG of HEIGHT x WIDTH from SVG." |
| 124 | (gexp->derivation "grub-image.png" | 124 | (gexp->derivation "grub-image.png" |
| 125 | (with-imported-modules '((gnu build svg)) | 125 | (with-imported-modules '((gnu build svg)) |
| 126 | #~(begin | 126 | (with-extensions (list guile-rsvg guile-cairo) |
| 127 | ;; We need these two libraries. | 127 | #~(begin |
| 128 | (add-to-load-path (string-append #+guile-rsvg | 128 | (use-modules (gnu build svg)) |
| 129 | "/share/guile/site/" | 129 | (svg->png #+svg #$output |
| 130 | (effective-version))) | 130 | #:width #$width |
| 131 | (add-to-load-path (string-append #+guile-cairo | 131 | #:height #$height)))))) |
| 132 | "/share/guile/site/" | ||
| 133 | (effective-version))) | ||
| 134 | |||
| 135 | (use-modules (gnu build svg)) | ||
| 136 | (svg->png #+svg #$output | ||
| 137 | #:width #$width | ||
| 138 | #:height #$height))))) | ||
| 139 | 132 | ||
| 140 | (define* (grub-background-image config #:key (width 1024) (height 768)) | 133 | (define* (grub-background-image config #:key (width 1024) (height 768)) |
| 141 | "Return the GRUB background image defined in CONFIG with a ratio of | 134 | "Return the GRUB background image defined in CONFIG with a ratio of |
