about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/inputmethods/fcitx/wrapper.nix
blob: 28a08e39b225d79cd119a89fdfe6ec7f1f683f22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ symlinkJoin, fcitx, fcitx-configtool, makeWrapper, plugins, libsForQt5 }:

symlinkJoin {
  name = "fcitx-with-plugins-${fcitx.version}";

  paths = [ fcitx fcitx-configtool libsForQt5.fcitx-qt5 ] ++ plugins;

  buildInputs = [ makeWrapper ];

  postBuild = ''
    wrapProgram $out/bin/fcitx \
      --set FCITXDIR "$out/"
  '';
}