librsvg: fix thumbnailer path
librsvg hooks itself into gdk-pixbuf and then uses gdk-pixbuf-thumbnailer as the thumbnailer, extending its supported MIME type list. Unfortunately, librsvg assumes the thumbnailer will be located in the same bindir as librsvg binaries would, which is not true on Nix-powered systems. This commit corrects the bindir path of the thumbnailer to the gdk_pixbuf derivation.
This commit is contained in:
parent
9824ca6975
commit
dd200f8197
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ stdenv.mkDerivation rec {
|
|||
-i gdk-pixbuf-loader/Makefile
|
||||
sed -e "s#\$(GDK_PIXBUF_QUERYLOADERS)#GDK_PIXBUF_MODULEDIR=$GDK_PIXBUF/loaders \$(GDK_PIXBUF_QUERYLOADERS)#" \
|
||||
-i gdk-pixbuf-loader/Makefile
|
||||
|
||||
# Fix thumbnailer path
|
||||
sed -e "s#@bindir@\(/gdk-pixbuf-thumbnailer\)#${gdk_pixbuf}/bin\1#g" \
|
||||
-i gdk-pixbuf-loader/librsvg.thumbnailer.in
|
||||
'';
|
||||
|
||||
# Merge gdkpixbuf and librsvg loaders
|
||||
|
|
Loading…
Reference in a new issue