mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-14 11:20:12 +00:00
The build issue was caused by issue in traitobject crate https://github.com/reem/rust-traitobject/issues/8 and was fixed in 0.1.1 version. Since LanguageClient-neovim doesn't get much attention, patch Cargo.lock here to use the newer version of traitobject crate. Fixes https://github.com/NixOS/nixpkgs/issues/424400
56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
vimUtils,
|
|
}:
|
|
let
|
|
version = "0.1.161";
|
|
src = fetchFromGitHub {
|
|
owner = "autozimu";
|
|
repo = "LanguageClient-neovim";
|
|
tag = version;
|
|
hash = "sha256-Z9S2ie9RxJCIbmjSV/Tto4lK04cZfWmK3IAy8YaySVI=";
|
|
};
|
|
LanguageClient-neovim-bin = rustPlatform.buildRustPackage {
|
|
pname = "LanguageClient-neovim-bin";
|
|
inherit version src;
|
|
|
|
cargoPatches = [
|
|
./traitobject.patch
|
|
];
|
|
|
|
cargoHash = "sha256-43alR84MktYTmsKeUMm4gK8AjUIkGqcsuFeQPusBKD0=";
|
|
};
|
|
in
|
|
vimUtils.buildVimPlugin {
|
|
pname = "LanguageClient-neovim";
|
|
inherit version src;
|
|
|
|
propagatedBuildInputs = [ LanguageClient-neovim-bin ];
|
|
|
|
preFixup = ''
|
|
substituteInPlace "$out"/autoload/LanguageClient.vim \
|
|
--replace-fail \
|
|
"let l:path = s:root . '/bin/'" \
|
|
"let l:path = '${LanguageClient-neovim-bin}' . '/bin/'"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
extraArgs = [ "--version-regex=(\\d+\\.\\d+\\.\\d+)" ];
|
|
attrPath = "vimPlugins.LanguageClient-neovim.LanguageClient-neovim-bin";
|
|
};
|
|
|
|
# needed for the update script
|
|
inherit LanguageClient-neovim-bin;
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/autozimu/LanguageClient-neovim/";
|
|
changelog = "https://github.com/autozimu/LanguageClient-neovim/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|