mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
rime-ls: init at 0.4.0 (#351508)
This commit is contained in:
commit
a833a6d94a
37
pkgs/by-name/ri/rime-ls/package.nix
Normal file
37
pkgs/by-name/ri/rime-ls/package.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user