rime-ls: init at 0.4.0 (#351508)

This commit is contained in:
Aleksana 2024-11-26 17:57:56 +08:00 committed by GitHub
commit a833a6d94a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,37 @@
{
lib,
rustPlatform,
fetchFromGitHub,
librime,
rime-data,
}:
rustPlatform.buildRustPackage rec {
pname = "rime-ls";
version = "0.4.0";
src = fetchFromGitHub {
owner = "wlh320";
repo = "rime-ls";
rev = "v${version}";
hash = "sha256-ZqoRFIF3ehfEeTN+ZU+/PAzA4JyS1403+sqZdzwJHA8=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-mbkxOYlOCpNzxVWwG8n4vD8klHGVjvMA8XSsBbifjoM=";
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = [ librime ];
# Set RIME_DATA_DIR to work around test_get_candidates during checkPhase
env.RIME_DATA_DIR = "${rime-data}/share/rime-data";
meta = {
description = "Language server for Rime input method engine";
homepage = "https://github.com/wlh320/rime-ls";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ definfo ];
mainProgram = "rime_ls";
};
}