From 72f9049d6efcba4b47dcfa8dea2b042ec90dc949 Mon Sep 17 00:00:00 2001 From: winston Date: Sun, 26 May 2024 12:48:20 +0200 Subject: [PATCH] vimPlugins.nvim-spectre: fix `spectre_oxi` build on darwin the upstream Rust dependency has been fixed for macOS. --- pkgs/applications/editors/vim/plugins/generated.nix | 4 ++-- pkgs/applications/editors/vim/plugins/overrides.nix | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index b2f677726e30..71110db1f38e 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -8274,8 +8274,8 @@ final: prev: src = fetchFromGitHub { owner = "nvim-pack"; repo = "nvim-spectre"; - rev = "5690ea46baf08bbc1623980012e14b6239ce582e"; - sha256 = "14m9hp7rr7qldqsl40k1jiqyk44bndq4pfibb08xcqp8hqn8f3q1"; + rev = "366f46fdd4a1593cc237aea13d5ef113739a472c"; + sha256 = "sha256-JS0kfM+uxwC/z8bdkdkaC+MAJIyvlvXsi3BDJuBxADA="; }; meta.homepage = "https://github.com/nvim-pack/nvim-spectre/"; }; diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 835ddde43d26..8f24b92251c9 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -1091,19 +1091,18 @@ cargoHash = "sha256-7V4RyWIo9gL3ir4Pay8CMIVn6cXjJi9sgKVOENG4muQ="; - 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 = ''