git.iko.soy/typeable/nixpkgs
on master help sign in
vimPlugins.notational-fzf-vim: Fix missing runtime deps
commit976aa974354aa7f05d341a33e7c6854a8410f172 authorBrett Lyons <blyons@fastmail.com> dateSun 23 Feb 2020, 17:53 (7 years ago) parent4af086a
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 ];