1{ symlinkJoin, fcitx, fcitx-configtool, makeWrapper, plugins, libsForQt5 }:
2
3symlinkJoin {
4 name = "fcitx-with-plugins-${fcitx.version}";
5
6 paths = [ fcitx fcitx-configtool libsForQt5.fcitx-qt5 ] ++ plugins;
7
8 nativeBuildInputs = [ makeWrapper ];
9
10 postBuild = ''
11 wrapProgram $out/bin/fcitx \
12 --set FCITXDIR "$out/"
13 '';
14}