git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #80657 from brettlyons/patch-1

vimPlugins.notational-fzf-vim: patch plugin to fix missing runtime dependency

commitb8a00580d0d03fe6fb1c2e915830d508ae672bff authorTimo Kaufmann <timokau@zoho.com> dateTue 25 Feb 2020, 00:42 (7 years ago) parent1805cfa976aa97
1 file changed+14
pkgs/misc/vim-plugins/overrides.nix+14
pkgs/misc/vim-plugins/overrides.nix+14
@@ -28,6 +28,9 @@
2828
2929# vCoolor dependency
3030, gnome3
31+
32+# notational-fzf-vim dependencies
33+, ripgrep
3134}:
3235
3336self: super: {
@@ -249,6 +252,17 @@ self: super: {
249252 ncm2-ultisnips = super.ncm2-ultisnips.overrideAttrs(old: {
250253 dependencies = with super; [ ultisnips ];
251254 });
255+
256+ notational-fzf-vim = super.notational-fzf-vim.overrideAttrs(old: {
257+ dependencies = with self; [ fzf-vim ];
258+ patchPhase = ''
259+ substituteInPlace plugin/notational_fzf.vim \
260+ --replace "'rg'" "'${ripgrep}/bin/rg'" \
261+ --replace \
262+ "let s:python_executable = executable('pypy3') ? 'pypy3' : 'python3'" \
263+ "let s:python_executable = '${python3}/bin/python3'"
264+ '';
265+ });
252266
253267 fzf-vim = super.fzf-vim.overrideAttrs(old: {
254268 dependencies = [ self.fzfWrapper ];