nixpkgs/pkgs/tools/inputmethods/fcitx5/fcitx5-rime.nix

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

57 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, pkg-config
2020-12-13 03:16:03 +00:00
, cmake
, extra-cmake-modules
, gettext
, fcitx5
, librime
, rime-data
, symlinkJoin
, rimeDataPkgs ? [ rime-data ]
2020-12-13 03:16:03 +00:00
}:
stdenv.mkDerivation rec {
pname = "fcitx5-rime";
2024-01-07 04:15:48 +00:00
version = "5.1.4";
2020-12-13 03:16:03 +00:00
src = fetchurl {
url = "https://download.fcitx-im.org/fcitx5/${pname}/${pname}-${version}.tar.xz";
2024-01-07 04:15:48 +00:00
hash = "sha256-tbCIWenH5brJUVIsmOiw/E/uIXAWwK1yangIVlkeOAs=";
2020-12-13 03:16:03 +00:00
};
cmakeFlags = [
"-DRIME_DATA_DIR=${placeholder "out"}/share/rime-data"
2020-12-13 03:16:03 +00:00
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
2020-12-13 03:16:03 +00:00
gettext
];
buildInputs = [
fcitx5
librime
];
rimeDataDrv = symlinkJoin {
name = "fcitx5-rime-data";
paths = rimeDataPkgs;
};
postInstall = ''
cp -r "${rimeDataDrv}/share/rime-data/." $out/share/rime-data/
'';
2021-01-15 09:19:50 +00:00
meta = with lib; {
2020-12-13 03:16:03 +00:00
description = "RIME support for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-rime";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}