From 795680d433c947adcda8edb67d13eb6d1b170a40 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Fri, 26 Sep 2025 11:41:26 +0200 Subject: [PATCH] vimPlugins.LanguageClient-neovim: fix Rust build 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 --- .../LanguageClient-neovim/default.nix | 8 +++++--- .../LanguageClient-neovim/traitobject.patch | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/traitobject.patch diff --git a/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/default.nix b/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/default.nix index 7b7a683ab931..2a575056e89a 100644 --- a/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/default.nix +++ b/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/default.nix @@ -17,7 +17,11 @@ let pname = "LanguageClient-neovim-bin"; inherit version src; - cargoHash = "sha256-1tfeowqvjEjMXIfrhr388YhlZrk3ns+Y/2odQnkLw7k="; + cargoPatches = [ + ./traitobject.patch + ]; + + cargoHash = "sha256-43alR84MktYTmsKeUMm4gK8AjUIkGqcsuFeQPusBKD0="; }; in vimUtils.buildVimPlugin { @@ -47,7 +51,5 @@ vimUtils.buildVimPlugin { homepage = "https://github.com/autozimu/LanguageClient-neovim/"; changelog = "https://github.com/autozimu/LanguageClient-neovim/releases/tag/${src.tag}"; license = lib.licenses.mit; - # Rust build error - broken = true; }; } diff --git a/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/traitobject.patch b/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/traitobject.patch new file mode 100644 index 000000000000..8f649b4ee6dd --- /dev/null +++ b/pkgs/applications/editors/vim/plugins/non-generated/LanguageClient-neovim/traitobject.patch @@ -0,0 +1,15 @@ +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -1026,9 +1028,9 @@ dependencies = [ + + [[package]] + name = "traitobject" +-version = "0.1.0" ++version = "0.1.1" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" ++checksum = "04a79e25382e2e852e8da874249358d382ebaf259d0d34e75d8db16a7efabbc7" + + [[package]] + name = "treediff" +