summaryrefslogtreecommitdiff
path: root/gnu/bootloader
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/bootloader')
-rw-r--r--gnu/bootloader/grub.scm19
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