about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-02-25 00:42:06 +0000
committerGitHub <noreply@github.com>2020-02-25 00:42:06 +0000
commitb8a00580d0d03fe6fb1c2e915830d508ae672bff (patch)
treea940811c9d5e7e23ae4bf337355dd614a99df093
parent1805cfabff1320cfb543ba803049a6be5850955f (diff)
parent976aa974354aa7f05d341a33e7c6854a8410f172 (diff)
downloadnixlib-b8a00580d0d03fe6fb1c2e915830d508ae672bff.tar
nixlib-b8a00580d0d03fe6fb1c2e915830d508ae672bff.tar.gz
nixlib-b8a00580d0d03fe6fb1c2e915830d508ae672bff.tar.bz2
nixlib-b8a00580d0d03fe6fb1c2e915830d508ae672bff.tar.lz
nixlib-b8a00580d0d03fe6fb1c2e915830d508ae672bff.tar.xz
nixlib-b8a00580d0d03fe6fb1c2e915830d508ae672bff.tar.zst
nixlib-b8a00580d0d03fe6fb1c2e915830d508ae672bff.zip
Merge pull request #80657 from brettlyons/patch-1
vimPlugins.notational-fzf-vim: patch plugin to fix missing runtime dependency
-rw-r--r--pkgs/misc/vim-plugins/overrides.nix14
1 files changed, 14 insertions, 0 deletions
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 ];