21 pyStrokeVer = "20121124";
23 url = "http://download.fcitx-im.org/data/py_stroke-${pyStrokeVer}.tar.gz";
24 hash = "sha256-jrEoqb+kOVLmfPL87h/RNMb0z9MXvC9sOKYV9etk4kg=";
26 pyTableVer = "20121124";
28 url = "http://download.fcitx-im.org/data/py_table-${pyTableVer}.tar.gz";
29 hash = "sha256-QhRqyX3mwT1V+eme2HORX0xmc56cEVMqNFVrrfl5LAQ=";
33 stdenv.mkDerivation rec {
34 pname = "fcitx5-chinese-addons";
37 src = fetchFromGitHub {
41 hash = "sha256-vtIzm8ia5hC0JdsGNopIHdAd8RDVgrbtVvj1Jh+gE94=";
52 ln -s ${pyStroke} modules/pinyinhelper/$(stripHash ${pyStroke})
53 ln -s ${pyTable} modules/pinyinhelper/$(stripHash ${pyTable})
64 ] ++ lib.optional luaSupport fcitx5-lua;
67 (lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6"))
70 dontWrapQtApps = true;
73 description = "Addons related to Chinese, including IME previous bundled inside fcitx4";
74 mainProgram = "scel2org5";
75 homepage = "https://github.com/fcitx/fcitx5-chinese-addons";
76 license = with licenses; [ gpl2Plus lgpl21Plus ];
77 maintainers = with maintainers; [ poscat ];
78 platforms = platforms.linux;