Files
nixpkgs/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/default.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

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;
};
}