summary refs log tree commit diff
path: root/pkgs/development/libraries/librsvg
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-10-01 01:30:17 +0200
committerJan Tojnar <jtojnar@gmail.com>2017-10-01 15:16:38 +0200
commitdd200f81972217866c6cb41268a5820a2ea31ad6 (patch)
treec767ea03c5b07a2400ba57f12a752aac47a80820 /pkgs/development/libraries/librsvg
parent9824ca6975fcbf5a2da9e6ba98dacafaa12bb1b3 (diff)
downloadnixpkgs-dd200f81972217866c6cb41268a5820a2ea31ad6.tar
nixpkgs-dd200f81972217866c6cb41268a5820a2ea31ad6.tar.gz
nixpkgs-dd200f81972217866c6cb41268a5820a2ea31ad6.tar.bz2
nixpkgs-dd200f81972217866c6cb41268a5820a2ea31ad6.tar.lz
nixpkgs-dd200f81972217866c6cb41268a5820a2ea31ad6.tar.xz
nixpkgs-dd200f81972217866c6cb41268a5820a2ea31ad6.tar.zst
nixpkgs-dd200f81972217866c6cb41268a5820a2ea31ad6.zip
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.
Diffstat (limited to 'pkgs/development/libraries/librsvg')
-rw-r--r--pkgs/development/libraries/librsvg/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/librsvg/default.nix b/pkgs/development/libraries/librsvg/default.nix
index 447712fc7db..7845f28adc9 100644
--- a/pkgs/development/libraries/librsvg/default.nix
+++ b/pkgs/development/libraries/librsvg/default.nix
@@ -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