Unverified Commit fb9a9dde authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

vimPlugins.blink-cmp: 0.13.1 -> 0.14.0 (#391084)

parents 7b34251c 2445236d
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -2,19 +2,18 @@
  lib,
  rustPlatform,
  fetchFromGitHub,
  fetchpatch,
  stdenv,
  vimUtils,
  nix-update-script,
  git,
}:
let
  version = "0.13.1";
  version = "0.14.0";
  src = fetchFromGitHub {
    owner = "Saghen";
    repo = "blink.cmp";
    tag = "v${version}";
    hash = "sha256-eOlTkWMzQTZPPKPKUxg8Q2PwkOhfaQdrMZkg9Ew8t/g=";
    hash = "sha256-aY+bBP3DOdr+yA0HKKUBR/87g096NXH9h4EUrIJY92Y=";
  };
  blink-fuzzy-lib = rustPlatform.buildRustPackage {
    inherit version src;
@@ -41,18 +40,8 @@ vimUtils.buildVimPlugin {
    ''
      mkdir -p target/release
      ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy${ext} target/release/libblink_cmp_fuzzy${ext}
      echo -n "nix" > target/release/version
    '';

  # TODO: Remove this patch when updating to next version
  patches = [
    (fetchpatch {
      name = "blink-add-bypass-for-nix.patch";
      url = "https://github.com/Saghen/blink.cmp/commit/6c83ef1ae34abd7ef9a32bfcd9595ac77b61037c.diff?full_index=1";
      hash = "sha256-304F1gDDKVI1nXRvvQ0T1xBN+kHr3jdmwMMp8CNl+GU=";
    })
  ];

  passthru = {
    updateScript = nix-update-script {
      attrPath = "vimPlugins.blink-cmp.blink-fuzzy-lib";