push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
pkg-config,
buildPackages,
cmake,
extra-cmake-modules,
wayland-scanner,
cairo,
pango,
expat,
fribidi,
wayland,
systemd,
wayland-protocols,
json_c,
isocodes,
xkeyboard_config,
enchant,
gdk-pixbuf,
libGL,
libuuid,
libselinux,
libXdmcp,
libsepol,
libxkbcommon,
libthai,
libdatrie,
xcbutilkeysyms,
xcbutil,
xcbutilwm,
xcb-imdkit,
libxkbfile,
nixosTests,
gettext,
}:
let
enDictVer = "20121020";
enDict = fetchurl {
url = "https://download.fcitx-im.org/data/en_dict-${enDictVer}.tar.gz";
hash = "sha256-xEpdeEeSXuqeTS0EdI1ELNKN2SmaC1cu99kerE9abOs=";
};
in
stdenv.mkDerivation rec {
pname = "fcitx5";
version = "5.1.14";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-wLJZyoWjf02+m8Kw+IcfbZY2NnjMGtCWur2+w141eS4=";
};
prePatch = ''
ln -s ${enDict} src/modules/spell/$(stripHash ${enDict})
'';
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
wayland-scanner
gettext
];
buildInputs = [
expat
isocodes
cairo
enchant
pango
libthai
libdatrie
fribidi
systemd
gdk-pixbuf
wayland
wayland-protocols
json_c
libGL
libuuid
libselinux
libsepol
libXdmcp
libxkbcommon
xcbutil
xcbutilwm
xcbutilkeysyms
xcb-imdkit
xkeyboard_config
libxkbfile
];
cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
(lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages))
];
strictDeps = true;
passthru = {
updateScript = ./update.py;
tests = {
inherit (nixosTests) fcitx5;
};
};
meta = with lib; {
description = "Next generation of fcitx";
homepage = "https://github.com/fcitx/fcitx5";
license = licenses.lgpl21Plus;
mainProgram = "fcitx5";
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchurl,
cmake,
extra-cmake-modules,
pkg-config,
fcitx5,
anthy,
gettext,
zstd,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-anthy";
version = "5.1.7";
src = fetchurl {
url = "https://download.fcitx-im.org/fcitx5/fcitx5-anthy/${pname}-${version}.tar.zst";
hash = "sha256-lY5GFbeIee7u1NsLbkYt6BvST9lidvZLpaylL0wE2+0=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext # msgfmt
pkg-config
zstd
];
buildInputs = [
fcitx5
anthy
];
meta = with lib; {
description = "Anthy Wrapper for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-anthy";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ elnudev ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,48 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
fcitx5,
gettext,
go,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fcitx5-bamboo";
version = "1.0.8";
src = fetchFromGitHub {
owner = "fcitx";
repo = "fcitx5-bamboo";
rev = finalAttrs.version;
hash = "sha256-cnrW25M9nluBLa+9Mynzkn/6AiGccSbtjS8p+L4ZDKM=";
fetchSubmodules = true;
};
strictDeps = true;
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
go
];
buildInputs = [
fcitx5
];
preConfigure = ''
export GOCACHE=$TMPDIR/go-cache
'';
meta = {
description = "Vietnamese input method engine support for Fcitx";
homepage = "https://github.com/fcitx/fcitx5-bamboo";
license = lib.licenses.lgpl21Plus;
maintainers = [ ];
platforms = lib.platforms.linux;
};
})

View File

@@ -0,0 +1,41 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
gettext,
fcitx5,
libchewing,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-chewing";
version = "5.1.8";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-On8lbZL7hyY399a/q6iCNkDvRljv3zirzEO1wIG+MNE=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
];
buildInputs = [
fcitx5
libchewing
];
meta = with lib; {
description = "Chewing wrapper for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-chewing";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,84 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
cmake,
extra-cmake-modules,
boost,
gettext,
libime,
fcitx5,
fcitx5-qt,
fcitx5-lua,
qtwebengine,
opencc,
curl,
fmt,
qtbase,
luaSupport ? true,
}:
let
pyStrokeVer = "20250329";
pyStroke = fetchurl {
url = "http://download.fcitx-im.org/data/py_stroke-${pyStrokeVer}.tar.gz";
hash = "sha256-wafKciXTYUq4M1P8gnUDAGqYBEd2IBj1N2BCXXtTA6Y=";
};
pyTableVer = "20121124";
pyTable = fetchurl {
url = "http://download.fcitx-im.org/data/py_table-${pyTableVer}.tar.gz";
hash = "sha256-QhRqyX3mwT1V+eme2HORX0xmc56cEVMqNFVrrfl5LAQ=";
};
in
stdenv.mkDerivation rec {
pname = "fcitx5-chinese-addons";
version = "5.1.9";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-xHLd7X9IdYTsVyqbghVzdC2i9AVipFHKRxP2Zqq7zGw=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
fcitx5-lua
];
prePatch = ''
ln -s ${pyStroke} modules/pinyinhelper/$(stripHash ${pyStroke})
ln -s ${pyTable} modules/pinyinhelper/$(stripHash ${pyTable})
'';
buildInputs = [
boost
fcitx5
fcitx5-qt
libime
curl
opencc
qtwebengine
fmt
qtbase
]
++ lib.optional luaSupport fcitx5-lua;
dontWrapQtApps = true;
meta = with lib; {
description = "Addons related to Chinese, including IME previous bundled inside fcitx4";
mainProgram = "scel2org5";
homepage = "https://github.com/fcitx/fcitx5-chinese-addons";
license = with licenses; [
gpl2Plus
lgpl21Plus
];
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,94 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
pkg-config,
fcitx5,
fcitx5-qt,
qtbase,
qtsvg,
qtwayland,
qtdeclarative,
qtx11extras ? null,
kitemviews,
kwidgetsaddons,
qtquickcontrols2 ? null,
kcoreaddons,
kdeclarative,
kirigami ? null,
kirigami2 ? null,
isocodes,
xkeyboardconfig,
libxkbfile,
libplasma ? null,
plasma-framework ? null,
wrapQtAppsHook,
kcmSupport ? true,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-configtool";
version = "5.1.10";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-Py2UDBQRqvT7kwZeQIXKrIjGAbOjjxEyEfO5tdtizW4=";
};
cmakeFlags = [
(lib.cmakeBool "KDE_INSTALL_USE_QT_SYS_PATHS" true)
(lib.cmakeBool "ENABLE_KCM" kcmSupport)
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
wrapQtAppsHook
];
buildInputs = [
fcitx5
fcitx5-qt
qtbase
qtsvg
qtwayland
kitemviews
kwidgetsaddons
isocodes
xkeyboardconfig
libxkbfile
]
++ lib.optionals (lib.versions.major qtbase.version == "5") [
qtx11extras
]
++ lib.optionals kcmSupport (
[
qtdeclarative
kcoreaddons
kdeclarative
]
++ lib.optionals (lib.versions.major qtbase.version == "5") [
qtquickcontrols2
plasma-framework
kirigami2
]
++ lib.optionals (lib.versions.major qtbase.version == "6") [
libplasma
kirigami
]
);
meta = with lib; {
description = "Configuration Tool for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-configtool";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
mainProgram = "fcitx5-config-qt";
};
}

View File

@@ -0,0 +1,85 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
fcitx5,
gobject-introspection,
glib,
gtk2,
gtk3,
gtk4,
fmt,
pcre,
libuuid,
libselinux,
libsepol,
libthai,
libdatrie,
libXdmcp,
libxkbcommon,
libepoxy,
dbus,
at-spi2-core,
libXtst,
withGTK2 ? false,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-gtk";
version = "5.1.4";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-MlBLhgqpF+A9hotnhX83349wIpCQfzsqpyZb0xME2XQ=";
};
outputs = [
"out"
"dev"
];
cmakeFlags = [
"-DGOBJECT_INTROSPECTION_GIRDIR=share/gir-1.0"
"-DGOBJECT_INTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
]
++ lib.optional (!withGTK2) "-DENABLE_GTK2_IM_MODULE=off";
buildInputs = [
glib
gtk3
gtk4
fmt
fcitx5
pcre
libuuid
libselinux
libsepol
libthai
libdatrie
libXdmcp
libxkbcommon
libepoxy
dbus
at-spi2-core
libXtst
]
++ lib.optional withGTK2 gtk2;
nativeBuildInputs = [
cmake
extra-cmake-modules
gobject-introspection
];
meta = with lib; {
description = "Fcitx5 gtk im module and glib based dbus client library";
homepage = "https://github.com/fcitx/fcitx5-gtk";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,46 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
gettext,
fcitx5,
libhangul,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-hangul";
version = "5.1.7";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-66VW/hzKMVwXd7ktPQHrVbsWazKedS+/giTLIh5fkwo=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
];
buildInputs = [
fcitx5
libhangul
];
passthru.tests = {
inherit (nixosTests) fcitx5;
};
meta = with lib; {
description = "Hangul wrapper for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-hangul";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,44 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
fcitx5,
lua,
gettext,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-lua";
version = "5.0.15";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-BhsckLi6FSrRw+QZ8pTEgjV4BaTKSKAJtmcRCFoOUwU=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
];
buildInputs = [
fcitx5
lua
];
passthru = {
extraLdLibraries = [ lua ];
};
meta = with lib; {
description = "Lua support for Fcitx 5";
homepage = "https://github.com/fcitx/fcitx5-lua";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
pkg-config,
fcitx5,
m17n_lib,
m17n_db,
gettext,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-m17n";
version = "5.1.4";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-TJMJGjO9V6EOzxt6Z7rwOfIQWK38XolDhUKbjbNUGhA=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
gettext
];
buildInputs = [
fcitx5
m17n_db
m17n_lib
];
passthru.tests = {
inherit (nixosTests) fcitx5;
};
meta = with lib; {
description = "m17n support for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-m17n";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ Technical27 ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,64 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
fcitx5,
gettext,
qtbase,
qtwayland,
wrapQtAppsHook,
wayland,
}:
let
majorVersion = lib.versions.major qtbase.version;
in
stdenv.mkDerivation rec {
pname = "fcitx5-qt${majorVersion}";
version = "5.1.10";
src = fetchFromGitHub {
owner = "fcitx";
repo = "fcitx5-qt";
rev = version;
hash = "sha256-JhmaAAJ1fevCPItVnneUCAalnDDaCjjkAl9QRhSkBk4=";
};
postPatch = ''
substituteInPlace qt${majorVersion}/platforminputcontext/CMakeLists.txt \
--replace \$"{CMAKE_INSTALL_QT${majorVersion}PLUGINDIR}" $out/${qtbase.qtPluginPrefix}
'';
cmakeFlags = [
"-DENABLE_QT4=OFF"
"-DENABLE_QT5=OFF"
"-DENABLE_QT6=OFF"
"-DENABLE_QT${majorVersion}=ON"
];
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
wrapQtAppsHook
];
buildInputs = [
qtbase
qtwayland
fcitx5
wayland
];
meta = with lib; {
description = "Fcitx5 Qt Library";
homepage = "https://github.com/fcitx/fcitx5-qt";
license = with licenses; [
lgpl21Plus
bsd3
];
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,65 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
cmake,
extra-cmake-modules,
gettext,
zstd,
fcitx5,
librime,
rime-data,
symlinkJoin,
rimeDataPkgs ? [ rime-data ],
}:
stdenv.mkDerivation rec {
pname = "fcitx5-rime";
version = "5.1.11";
src = fetchurl {
url = "https://download.fcitx-im.org/fcitx5/${pname}/${pname}-${version}.tar.zst";
hash = "sha256-cc/B99tdVVWnvdl7dYYQlIvk8F2xXUOr6sF36yxQZfY=";
};
cmakeFlags = [
"-DRIME_DATA_DIR=${placeholder "out"}/share/rime-data"
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
gettext
zstd
];
buildInputs = [
fcitx5
librime
];
rimeDataDrv = symlinkJoin {
name = "fcitx5-rime-data";
paths = rimeDataPkgs;
postBuild = ''
mkdir -p $out/share/rime-data
# Ensure default.yaml exists
[ -e "$out/share/rime-data/default.yaml" ] || touch "$out/share/rime-data/default.yaml"
'';
};
postInstall = ''
cp -r "${rimeDataDrv}/share/rime-data/." $out/share/rime-data/
'';
meta = with lib; {
description = "RIME support for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-rime";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,58 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
cmake,
extra-cmake-modules,
gettext,
fcitx5,
fcitx5-qt,
libskk,
qtbase,
skkDictionaries,
enableQt ? false,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-skk";
version = "5.1.7";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-WMkcZSocanhWMn9kiWyB07jEW4x84G07kAYvn5heenc=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
pkg-config
];
buildInputs = [
fcitx5
libskk
]
++ lib.optionals enableQt [
fcitx5-qt
qtbase
];
cmakeFlags = [
(lib.cmakeBool "ENABLE_QT" enableQt)
"-DSKK_DEFAULT_PATH=${skkDictionaries.l}/share/skk/SKK-JISYO.L"
];
dontWrapQtApps = true;
meta = with lib; {
description = "Input method engine for Fcitx5, which uses libskk as its backend";
homepage = "https://github.com/fcitx/fcitx5-skk";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ wattmto ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
gettext,
libime,
boost,
fcitx5,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-table-extra";
version = "5.1.8";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-FrVkSDLH6lYQbhvcxtX/IQpRC3dphsHu7xVdgnDNcgg=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
libime
fcitx5
];
buildInputs = [
boost
];
meta = with lib; {
description = "Extra table for Fcitx, including Boshiamy, Zhengma, Cangjie, and Quick";
homepage = "https://github.com/fcitx/fcitx5-table-extra";
license = licenses.gpl2Only;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
gettext,
libime,
boost,
fcitx5,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-table-other";
version = "5.1.5";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-hoAaismWfiVIYs780oiwwA3syjBnYNQ5nYbhlBbAAKw=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
libime
fcitx5
];
buildInputs = [
boost
];
meta = with lib; {
description = "Some other tables for Fcitx";
homepage = "https://github.com/fcitx/fcitx5-table-other";
license = licenses.gpl3Only;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,45 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
extra-cmake-modules,
fcitx5,
fcitx5-qt,
gettext,
qtbase,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-unikey";
version = "5.1.7";
src = fetchFromGitHub {
owner = "fcitx";
repo = "fcitx5-unikey";
rev = version;
hash = "sha256-ve+vu/bK3GYgjn9KxuOsFZFi9eymi1TFlzUHu4fJAkk=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext # msgfmt
];
buildInputs = [
qtbase
fcitx5
fcitx5-qt
];
dontWrapQtApps = true;
meta = with lib; {
description = "Unikey engine support for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-unikey";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ berberman ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,43 @@
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p nix-update python3Packages.requests
import requests
import subprocess
REPOS = [
"libime",
"xcb-imdkit",
"fcitx5",
"fcitx5-anthy",
"fcitx5-chewing",
"fcitx5-chinese-addons",
"fcitx5-configtool",
"fcitx5-gtk",
"fcitx5-hangul",
"fcitx5-lua",
"fcitx5-m17n",
"fcitx5-qt",
"fcitx5-rime",
"fcitx5-skk",
"fcitx5-table-extra",
"fcitx5-table-other",
"fcitx5-unikey"
]
OWNER = "fcitx"
def get_latest_tag(repo, owner=OWNER):
r = requests.get('https://api.github.com/repos/{}/{}/tags'.format(owner,repo))
return r.json()[0].get("name")
def main():
for repo in REPOS:
rev = get_latest_tag(repo)
if repo == "fcitx5-qt":
subprocess.run(["nix-update", "--commit", "--version", rev, "qt6Packages.{}".format(repo)])
else:
subprocess.run(["nix-update", "--commit", "--version", rev, repo])
if __name__ == "__main__":
main ()

View File

@@ -0,0 +1,54 @@
{
lib,
symlinkJoin,
makeBinaryWrapper,
fcitx5,
withConfigtool ? true,
fcitx5-configtool,
libsForQt5,
qt6Packages,
fcitx5-gtk,
addons ? [ ],
}:
symlinkJoin {
name = "fcitx5-with-addons-${fcitx5.version}";
paths = [
fcitx5
libsForQt5.fcitx5-qt
qt6Packages.fcitx5-qt
fcitx5-gtk
]
++ lib.optionals withConfigtool [
fcitx5-configtool
]
++ addons;
nativeBuildInputs = [ makeBinaryWrapper ];
postBuild = ''
wrapProgram $out/bin/fcitx5 \
--prefix FCITX_ADDON_DIRS : "$out/lib/fcitx5" \
--suffix XDG_DATA_DIRS : "$out/share" \
--suffix PATH : "$out/bin" \
--suffix LD_LIBRARY_PATH : "${
lib.makeLibraryPath (lib.flatten (map (x: x.extraLdLibraries or [ ]) addons))
}"
${lib.optionalString withConfigtool ''
# Configtool call libexec/fcitx5-qt5-gui-wrapper for gui addons in FCITX_ADDON_DIRS
wrapProgram $out/bin/fcitx5-config-qt --prefix FCITX_ADDON_DIRS : "$out/lib/fcitx5"
''}
pushd $out
grep -Rl --include=\*.{desktop,service} share/applications etc/xdg/autostart share/dbus-1/services -e ${fcitx5} | while read -r file; do
rm $file
cp ${fcitx5}/$file $file
substituteInPlace $file --replace-fail ${fcitx5} $out
done
popd
'';
inherit (fcitx5) meta;
}