From 976aa974354aa7f05d341a33e7c6854a8410f172 Mon Sep 17 00:00:00 2001 From: Brett Lyons Date: Sun, 23 Feb 2020 17:53:51 -0700 Subject: [PATCH] vimPlugins.notational-fzf-vim: Fix missing runtime deps --- pkgs/misc/vim-plugins/overrides.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/misc/vim-plugins/overrides.nix index c115f9b1cd62..cecd53ae8201 100644 --- a/pkgs/misc/vim-plugins/overrides.nix +++ b/pkgs/misc/vim-plugins/overrides.nix @@ -28,6 +28,9 @@ # vCoolor dependency , gnome3 + +# notational-fzf-vim dependencies +, ripgrep }: self: super: { @@ -249,6 +252,17 @@ self: super: { ncm2-ultisnips = super.ncm2-ultisnips.overrideAttrs(old: { dependencies = with super; [ ultisnips ]; }); + + notational-fzf-vim = super.notational-fzf-vim.overrideAttrs(old: { + dependencies = with self; [ fzf-vim ]; + patchPhase = '' + substituteInPlace plugin/notational_fzf.vim \ + --replace "'rg'" "'${ripgrep}/bin/rg'" \ + --replace \ + "let s:python_executable = executable('pypy3') ? 'pypy3' : 'python3'" \ + "let s:python_executable = '${python3}/bin/python3'" + ''; + }); fzf-vim = super.fzf-vim.overrideAttrs(old: { dependencies = [ self.fzfWrapper ];