fennel: Add direct readline dependency
This commit is contained in:
parent
06f281019a
commit
9f6537f090
2 changed files with 11 additions and 4 deletions
|
@ -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}"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue