vimPlugins.sql-nvim: Set a default libsqlite3.so

The plugin relies on sqlite to work. Also, telescosope-frecency-nvim
depends on sql-nvim
This commit is contained in:
José Luis Lafuente 2021-01-31 11:01:50 +01:00 committed by Matthieu Coudron
parent 5a89bde3c0
commit 64e4778694

View file

@ -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