nixpkgs/pkgs/tools/inputmethods/fcitx5/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

112 lines
1.7 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2020-12-13 03:06:44 +00:00
, fetchurl
, fetchFromGitHub
, pkg-config
, cmake
, extra-cmake-modules
, wayland-scanner
2020-12-13 03:06:44 +00:00
, cairo
, pango
, 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
, 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";
hash = "sha256-xEpdeEeSXuqeTS0EdI1ELNKN2SmaC1cu99kerE9abOs=";
2020-12-13 03:06:44 +00:00
};
in
stdenv.mkDerivation rec {
pname = "fcitx5";
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;
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
wayland-scanner
2020-12-13 03:06:44 +00:00
];
buildInputs = [
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
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-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;
};
}