From 64e47786944359c4ab170c7307e1b77d2ee39b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Lafuente?= Date: Sun, 31 Jan 2021 11:01:50 +0100 Subject: [PATCH] vimPlugins.sql-nvim: Set a default libsqlite3.so The plugin relies on sqlite to work. Also, telescosope-frecency-nvim depends on sql-nvim --- pkgs/misc/vim-plugins/overrides.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/misc/vim-plugins/overrides.nix index 6fefca59271a..a7ee9d2db1fe 100644 --- a/pkgs/misc/vim-plugins/overrides.nix +++ b/pkgs/misc/vim-plugins/overrides.nix @@ -297,8 +297,11 @@ self: super: { }); sql-nvim = super.sql-nvim.overrideAttrs(old: { - buildInputs = [ sqlite ]; - }); + postPatch = '' + substituteInPlace lua/sql/defs.lua \ + --replace "vim.g.sql_clib_path or" "vim.g.sql_clib_path or '${sqlite.out}/lib/libsqlite3.so' or" + ''; + }); sved = let # we put the script in its own derivation to benefit the magic of wrapGAppsHook @@ -687,6 +690,10 @@ self: super: { ''; }); + telescope-frecency-nvim = super.telescope-frecency-nvim.overrideAttrs(old: { + dependencies = [ self.sql-nvim ]; + }); + telescope-fzy-native-nvim = super.telescope-fzy-native-nvim.overrideAttrs (old: { preFixup = let