diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/vim/plugins/overrides.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/editors/vim/plugins/overrides.nix | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/applications/editors/vim/plugins/overrides.nix b/nixpkgs/pkgs/applications/editors/vim/plugins/overrides.nix index 73fdb754bb39..6a98dae86bc0 100644 --- a/nixpkgs/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/nixpkgs/pkgs/applications/editors/vim/plugins/overrides.nix @@ -969,9 +969,28 @@ dependencies = with self; [ nvim-lspconfig ]; }; - nvim-spectre = super.nvim-spectre.overrideAttrs { - dependencies = with self; [ plenary-nvim ]; - }; + nvim-spectre = super.nvim-spectre.overrideAttrs (old: + let + spectre_oxi = rustPlatform.buildRustPackage { + pname = "spectre_oxi"; + inherit (old) version src; + sourceRoot = "source/spectre_oxi"; + + cargoHash = "sha256-y2ZIgOApIShkIesXmItPKDO6XjFrG4GS5HCPncJUmN8="; + + + preCheck = '' + mkdir tests/tmp/ + ''; + }; + in + (lib.optionalAttrs stdenv.isLinux { + dependencies = with self; + [ plenary-nvim ]; + postInstall = '' + ln -s ${spectre_oxi}/lib/libspectre_oxi.* $out/lua/spectre_oxi.so + ''; + })); nvim-teal-maker = super.nvim-teal-maker.overrideAttrs { postPatch = '' @@ -1136,12 +1155,12 @@ sniprun = let - version = "1.3.10"; + version = "1.3.11"; src = fetchFromGitHub { owner = "michaelb"; repo = "sniprun"; rev = "refs/tags/v${version}"; - hash = "sha256-7tDREZ8ZXYySHrXVOh+ANT23CknJQvZJ8WtU5r0pOOQ="; + hash = "sha256-f/EifFvlHr41wP0FfkwSGVdXLyz739st/XtnsSbzNT4="; }; sniprun-bin = rustPlatform.buildRustPackage { pname = "sniprun-bin"; @@ -1151,7 +1170,7 @@ darwin.apple_sdk.frameworks.Security ]; - cargoHash = "sha256-n/HW+q4Xrme/ssS9Th5uFEUsDgkxRxKt2wSR8k08uHY="; + cargoHash = "sha256-SmhfjOnw89n/ATGvmyvd5clQSucIh7ky3v9JsSjtyfI="; nativeBuildInputs = [ makeWrapper ]; |