8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
16 hash = "sha256-ZqoRFIF3ehfEeTN+ZU+/PAzA4JyS1403+sqZdzwJHA8=";
19 useFetchCargoVendor = true;
20 cargoHash = "sha256-mbkxOYlOCpNzxVWwG8n4vD8klHGVjvMA8XSsBbifjoM=";
22 nativeBuildInputs = [ rustPlatform.bindgenHook ];
24 buildInputs = [ librime ];
26 # Set RIME_DATA_DIR to work around test_get_candidates during checkPhase
27 env.RIME_DATA_DIR = "${rime-data}/share/rime-data";
30 description = "Language server for Rime input method engine";
31 homepage = "https://github.com/wlh320/rime-ls";
32 license = lib.licenses.bsd3;
33 platforms = lib.platforms.linux;
34 maintainers = with lib.maintainers; [ definfo ];
35 mainProgram = "rime_ls";