mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: librsvg: Generate complete loaders.cache including support for SVG.
* gnu/packages/gnome.scm (librsvg): Add 'generate-full-cache phase.
This commit is contained in:
parent
ff0a8c590d
commit
cd14b5e3f3
1 changed files with 15 additions and 1 deletions
|
@ -610,7 +610,21 @@ (define-public librsvg
|
|||
;; Likewise, create a separate 'loaders.cache' file.
|
||||
(("gdk_pixbuf_cache_file = .*$")
|
||||
"gdk_pixbuf_cache_file = $(gdk_pixbuf_moduledir).cache\n")))
|
||||
%standard-phases)))
|
||||
(alist-cons-after
|
||||
'install 'generate-full-cache
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((loaders-directory
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/lib/gdk-pixbuf-2.0/2.0.10/loaders")))
|
||||
(zero?
|
||||
(system
|
||||
(string-append
|
||||
"gdk-pixbuf-query-loaders "
|
||||
loaders-directory "/libpixbufloader-svg.so "
|
||||
(string-join (find-files (assoc-ref inputs "gdk-pixbuf")
|
||||
"libpixbufloader-.*\\.so") " ")
|
||||
"> " loaders-directory ".cache")))))
|
||||
%standard-phases))))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)
|
||||
("glib" ,glib "bin") ; glib-mkenums, etc.
|
||||
|
|
Loading…
Reference in a new issue