1 { lib, stdenv, fetchurl, cmake, pkg-config, fcitx, librime, brise, hicolor-icon-theme }:
3 stdenv.mkDerivation rec {
8 url = "https://download.fcitx-im.org/fcitx-rime/${pname}-${version}.tar.xz";
9 sha256 = "0bd8snfa6jr8dhnm0s0z021iryh5pbaf7p15rhkgbigw2pssczpr";
12 nativeBuildInputs = [ cmake pkg-config ];
13 buildInputs = [ fcitx librime brise hicolor-icon-theme ];
15 # cmake cannont automatically find our nonstandard brise install location
16 cmakeFlags = [ "-DRIME_DATA_DIR=${brise}/share/rime-data" ];
19 substituteInPlace src/cmake_install.cmake \
20 --replace ${fcitx} $out
21 substituteInPlace data/cmake_install.cmake \
22 --replace ${fcitx} $out
27 homepage = "https://github.com/fcitx/fcitx-rime";
28 downloadPage = "https://download.fcitx-im.org/fcitx-rime/";
29 description = "Rime support for Fcitx";
30 license = licenses.gpl2;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ sifmelcara ];