gtk3: fix gtk-encode-symbolic-svg

This commit is contained in:
Jan Tojnar 2018-03-20 19:36:20 +01:00
parent 19f80a70be
commit fac57c25f0
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, gettext, perl
{ stdenv, fetchurl, fetchpatch, pkgconfig, gettext, perl, makeWrapper, shared-mime-info
, expat, glib, cairo, pango, gdk_pixbuf, atk, at-spi2-atk, gobjectIntrospection
, xorg, epoxy, json-glib, libxkbcommon, gmp
, waylandSupport ? stdenv.isLinux, wayland, wayland-protocols
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
outputBin = "dev";
nativeBuildInputs = [ pkgconfig gettext gobjectIntrospection perl ];
nativeBuildInputs = [ pkgconfig gettext gobjectIntrospection perl makeWrapper ];
patches = [
./3.0-immodules.cache.patch
@ -72,6 +72,11 @@ stdenv.mkDerivation rec {
moveToOutput bin/gtk-update-icon-cache "$out"
# Launcher
moveToOutput bin/gtk-launch "$out"
# TODO: patch glib directly
for f in $dev/bin/gtk-encode-symbolic-svg; do
wrapProgram $f --prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
done
'';
passthru = {