Commit 795680d4 authored by Yuriy Taraday's avatar Yuriy Taraday
Browse files

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
parent 1d695918
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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;
  };
}
+15 −0
Original line number Diff line number Diff line
--- 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"