1
0
Fork 0

fennel: Add direct readline dependency

This commit is contained in:
Daniel Kempkens 2022-04-24 20:09:54 +02:00
parent 06f281019a
commit 9f6537f090
2 changed files with 11 additions and 4 deletions

View file

@ -1,7 +1,16 @@
self: super: { self: super: {
fennel-luajit = super.fennel.overrideAttrs ( fennel-luajit = super.fennel.overrideAttrs (
let
luaPackages = with super.luajitPackages; [ readline ];
in
o: rec { o: rec {
buildInputs = [ super.luajit ]; buildInputs = [ super.luajit super.makeWrapper ] ++ luaPackages;
postInstall = o.postInstall or "" + ''
wrapProgram $out/bin/fennel \
--suffix LUA_CPATH ";" "${super.lib.concatMapStringsSep ";" super.luajitPackages.getLuaCPath luaPackages}" \
--suffix LUA_PATH ";" "${super.lib.concatMapStringsSep ";" super.luajitPackages.getLuaPath luaPackages}"
'';
} }
); );
} }

View file

@ -46,7 +46,7 @@ in
sumneko-lua-language-server sumneko-lua-language-server
taplo-lsp taplo-lsp
# LSP Tools # Diagnostic Tools
deadnix deadnix
hadolint hadolint
fennel-luajit fennel-luajit
@ -56,8 +56,6 @@ in
statix statix
]; ];
extraLuaPackages = with pkgs.luajitPackages; [ readline ];
plugins = (with customPlugins; [ plugins = (with customPlugins; [
# Fixes # Fixes
impatient-nvim impatient-nvim