fcitx: wrap with xmodmap in PATH
fcitx contains functionality to execute xmodmap when changing the layout, which triggers if ~/.Xmodmap is present. However, this breaks if xmodmap isn't present in fcitx's PATH.
This commit is contained in:
parent
f3322d79fb
commit
8813b5a191
1 changed files with 7 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
, libxml2, enchant2, isocodes, icu, libpthreadstubs
|
||||
, pango, cairo, libxkbfile, libXau, libXdmcp, libxkbcommon
|
||||
, dbus, gtk2, gtk3, qt4, extra-cmake-modules
|
||||
, xkeyboard_config, pcre, libuuid
|
||||
, xkeyboard_config, pcre, libuuid, xorg, makeWrapper
|
||||
, withPinyin ? true
|
||||
, fetchFromGitLab
|
||||
}:
|
||||
|
@ -68,7 +68,12 @@ stdenv.mkDerivation rec {
|
|||
patchShebangs cmake/
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake extra-cmake-modules intltool pkg-config pcre ];
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/fcitx \
|
||||
--prefix PATH : "${xorg.xmodmap}/bin"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake extra-cmake-modules intltool pkg-config pcre makeWrapper ];
|
||||
|
||||
buildInputs = [
|
||||
xkeyboard_config enchant2 gettext isocodes icu libpthreadstubs libXau libXdmcp libxkbfile
|
||||
|
|
Loading…
Reference in a new issue