2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv
|
2020-12-13 04:06:44 +01:00
|
|
|
, fetchurl
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, cairo
|
|
|
|
, cldr-emoji-annotation
|
|
|
|
, pango
|
|
|
|
, fribidi
|
|
|
|
, fmt
|
|
|
|
, wayland
|
|
|
|
, systemd
|
|
|
|
, wayland-protocols
|
|
|
|
, json_c
|
|
|
|
, isocodes
|
|
|
|
, xkeyboard_config
|
|
|
|
, enchant
|
|
|
|
, gdk-pixbuf
|
|
|
|
, libGL
|
|
|
|
, libevent
|
|
|
|
, libuuid
|
|
|
|
, libselinux
|
|
|
|
, libXdmcp
|
|
|
|
, libsepol
|
|
|
|
, libxkbcommon
|
|
|
|
, libthai
|
|
|
|
, libdatrie
|
|
|
|
, xcbutilkeysyms
|
|
|
|
, pcre
|
|
|
|
, xcbutilwm
|
|
|
|
, xcb-imdkit
|
|
|
|
, libxkbfile
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
enDictVer = "20121020";
|
|
|
|
enDict = fetchurl {
|
|
|
|
url = "https://download.fcitx-im.org/data/en_dict-${enDictVer}.tar.gz";
|
|
|
|
sha256 = "1svcb97sq7nrywp5f2ws57cqvlic8j6p811d9ngflplj8xw5sjn4";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5";
|
2021-09-27 02:18:20 +02:00
|
|
|
version = "5.0.9";
|
2020-12-13 04:06:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
2021-06-02 14:41:52 +02:00
|
|
|
repo = pname;
|
2020-12-13 04:06:44 +01:00
|
|
|
rev = version;
|
2021-09-27 02:18:20 +02:00
|
|
|
sha256 = "161xgm2fs51v8l46raz6xxkjmshpgaaax64lz8208m7fcd32ll3a";
|
2020-12-13 04:06:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
ln -s ${enDict} src/modules/spell/dict/$(stripHash ${enDict})
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fmt
|
|
|
|
isocodes
|
|
|
|
cairo
|
|
|
|
enchant
|
|
|
|
pango
|
|
|
|
libthai
|
|
|
|
libdatrie
|
|
|
|
fribidi
|
|
|
|
systemd
|
|
|
|
gdk-pixbuf
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
cldr-emoji-annotation
|
|
|
|
json_c
|
|
|
|
libGL
|
|
|
|
libevent
|
|
|
|
libuuid
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libXdmcp
|
|
|
|
libxkbcommon
|
|
|
|
pcre
|
|
|
|
xcbutilwm
|
|
|
|
xcbutilkeysyms
|
|
|
|
xcb-imdkit
|
|
|
|
xkeyboard_config
|
|
|
|
libxkbfile
|
|
|
|
];
|
|
|
|
|
2021-01-16 04:13:51 +01:00
|
|
|
passthru.updateScript = ./update.py;
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
meta = with lib; {
|
2020-12-13 04:06:44 +01:00
|
|
|
description = "Next generation of fcitx";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|