Skip to content

Commit

Permalink
librsvg: fix thumbnailer path
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit dd200f8)
  • Loading branch information
jtojnar authored and grahamc committed Oct 5, 2017
1 parent c2a4a01 commit 9c9aaaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/librsvg/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit 9c9aaaf

Please sign in to comment.