diff options
author | Poscat <poscat@mail.poscat.moe> | 2020-12-13 11:27:15 +0800 |
---|---|---|
committer | Poscat <poscat@mail.poscat.moe> | 2021-01-10 14:31:07 +0800 |
commit | 1b06ca4b0d74a0d04e64896a7b38c95e2cfc77ac (patch) | |
tree | dff74ab535723dc97ed1321160bdaec1700f9f09 /pkgs/tools/inputmethods | |
parent | 3dbd3d11e33e824ae6c9d59f6709d0dd838c6f27 (diff) |
fcitx5-with-addons: Init
Diffstat (limited to 'pkgs/tools/inputmethods')
-rw-r--r-- | pkgs/tools/inputmethods/fcitx5/with-addons.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/tools/inputmethods/fcitx5/with-addons.nix b/pkgs/tools/inputmethods/fcitx5/with-addons.nix new file mode 100644 index 0000000000000..854020effeaa8 --- /dev/null +++ b/pkgs/tools/inputmethods/fcitx5/with-addons.nix @@ -0,0 +1,18 @@ +{ symlinkJoin, makeWrapper, fcitx5, fcitx5-lua, fcitx5-configtool, fcitx5-qt, fcitx5-gtk, addons ? [] }: + +symlinkJoin { + name = "fcitx5-with-addons-${fcitx5.version}"; + + paths = [ fcitx5 fcitx5-configtool fcitx5-lua fcitx5-qt fcitx5-gtk ] ++ addons; + + buildInputs = [ makeWrapper ]; + + postBuild = '' + wrapProgram $out/bin/fcitx5 \ + --prefix FCITX_ADDON_DIRS : "$out/lib/fcitx5" \ + --suffix XDG_DATA_DIRS : "$out/share" \ + --suffix PATH : "$out/bin" + ''; + + meta = fcitx5.meta; +} |