2023-03-28 09:17:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-12-13 03:06:44 +00:00
|
|
|
, fetchurl
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
2023-02-11 11:24:53 +00:00
|
|
|
, wayland-scanner
|
2020-12-13 03:06:44 +00:00
|
|
|
, cairo
|
|
|
|
, pango
|
2023-09-04 13:12:17 +00:00
|
|
|
, expat
|
2020-12-13 03:06:44 +00:00
|
|
|
, fribidi
|
|
|
|
, fmt
|
|
|
|
, wayland
|
|
|
|
, systemd
|
|
|
|
, wayland-protocols
|
|
|
|
, json_c
|
|
|
|
, isocodes
|
|
|
|
, xkeyboard_config
|
|
|
|
, enchant
|
|
|
|
, gdk-pixbuf
|
|
|
|
, libGL
|
|
|
|
, libuuid
|
|
|
|
, libselinux
|
|
|
|
, libXdmcp
|
|
|
|
, libsepol
|
|
|
|
, libxkbcommon
|
|
|
|
, libthai
|
|
|
|
, libdatrie
|
|
|
|
, xcbutilkeysyms
|
|
|
|
, pcre
|
2023-09-04 13:12:17 +00:00
|
|
|
, xcbutil
|
2020-12-13 03:06:44 +00:00
|
|
|
, xcbutilwm
|
|
|
|
, xcb-imdkit
|
|
|
|
, libxkbfile
|
2023-05-19 21:13:45 +00:00
|
|
|
, nixosTests
|
2020-12-13 03:06:44 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
enDictVer = "20121020";
|
|
|
|
enDict = fetchurl {
|
|
|
|
url = "https://download.fcitx-im.org/data/en_dict-${enDictVer}.tar.gz";
|
2023-03-28 09:17:15 +00:00
|
|
|
hash = "sha256-xEpdeEeSXuqeTS0EdI1ELNKN2SmaC1cu99kerE9abOs=";
|
2020-12-13 03:06:44 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5";
|
2024-06-01 12:06:00 +00:00
|
|
|
version = "5.1.10";
|
2020-12-13 03:06:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
2021-06-02 12:41:52 +00:00
|
|
|
repo = pname;
|
2020-12-13 03:06:44 +00:00
|
|
|
rev = version;
|
2024-06-01 12:06:00 +00:00
|
|
|
hash = "sha256-rMtCzFe3imF/uY0kXM2ivyt11r5qNTNab7GkWzdeC/g=";
|
2020-12-13 03:06:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2022-09-10 00:50:11 +00:00
|
|
|
ln -s ${enDict} src/modules/spell/$(stripHash ${enDict})
|
2020-12-13 03:06:44 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
pkg-config
|
2023-02-11 11:24:53 +00:00
|
|
|
wayland-scanner
|
2020-12-13 03:06:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-09-04 13:12:17 +00:00
|
|
|
expat
|
2020-12-13 03:06:44 +00:00
|
|
|
fmt
|
|
|
|
isocodes
|
|
|
|
cairo
|
|
|
|
enchant
|
|
|
|
pango
|
|
|
|
libthai
|
|
|
|
libdatrie
|
|
|
|
fribidi
|
|
|
|
systemd
|
|
|
|
gdk-pixbuf
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
json_c
|
|
|
|
libGL
|
|
|
|
libuuid
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libXdmcp
|
|
|
|
libxkbcommon
|
|
|
|
pcre
|
2023-09-04 13:12:17 +00:00
|
|
|
xcbutil
|
2020-12-13 03:06:44 +00:00
|
|
|
xcbutilwm
|
|
|
|
xcbutilkeysyms
|
|
|
|
xcb-imdkit
|
|
|
|
xkeyboard_config
|
|
|
|
libxkbfile
|
|
|
|
];
|
|
|
|
|
2023-05-19 21:13:45 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.py;
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests) fcitx5;
|
|
|
|
};
|
|
|
|
};
|
2021-01-16 03:13:51 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
meta = with lib; {
|
2020-12-13 03:06:44 +00:00
|
|
|
description = "Next generation of fcitx";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|