Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
888 B
Nix
37 lines
888 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
librime,
|
|
rime-data,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rime-ls";
|
|
version = "0.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wlh320";
|
|
repo = "rime-ls";
|
|
rev = "v${version}";
|
|
hash = "sha256-jDn41hSDcQQO1d4G0XV6B/JZkryHtuoHUOYpmdE1Kxo=";
|
|
};
|
|
|
|
cargoHash = "sha256-lmvIH6ssEqbkcDETzHL+Spd04B576o8dijigUR88l9c=";
|
|
|
|
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";
|
|
};
|
|
}
|