From 1799d134ba4e388d928ebb8b7c47661dd5eb6ca8 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Sun, 3 Jan 2016 20:32:59 +0100 Subject: [PATCH] fcitx-configtool: add icon theme, fixes #11895 --- pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix b/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix index 8bbd28f82a31..80abc5dd20cc 100644 --- a/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix +++ b/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, cmake, fcitx, gtk3, isocodes }: +{ stdenv, fetchurl, makeWrapper, pkgconfig, cmake, fcitx, gtk3, isocodes, gnome3 }: stdenv.mkDerivation rec { name = "fcitx-configtool-0.4.8"; @@ -15,6 +15,12 @@ stdenv.mkDerivation rec { sha256 = "1vaim0namw58bfafbvws1vgd4010p19zwqfbx6bd1zi5sgchdg0f"; }; - buildInputs = [ fcitx cmake isocodes pkgconfig gtk3 ]; + buildInputs = [ makeWrapper fcitx cmake isocodes pkgconfig gtk3 + gnome3.defaultIconTheme ]; + + preFixup = '' + wrapProgram $out/bin/fcitx-config-gtk3 \ + --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"; + ''; }