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:
Jan Tojnar 2017-10-01 01:30:17 +02:00
parent 9824ca6975
commit dd200f8197
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -47,6 +47,10 @@ stdenv.mkDerivation rec {
-i gdk-pixbuf-loader/Makefile -i gdk-pixbuf-loader/Makefile
sed -e "s#\$(GDK_PIXBUF_QUERYLOADERS)#GDK_PIXBUF_MODULEDIR=$GDK_PIXBUF/loaders \$(GDK_PIXBUF_QUERYLOADERS)#" \ sed -e "s#\$(GDK_PIXBUF_QUERYLOADERS)#GDK_PIXBUF_MODULEDIR=$GDK_PIXBUF/loaders \$(GDK_PIXBUF_QUERYLOADERS)#" \
-i gdk-pixbuf-loader/Makefile -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 # Merge gdkpixbuf and librsvg loaders