fennelrepl add PREFIX/?/init.lua to lua load path

This commit is contained in:
Daniel Barlow 2023-07-08 23:05:00 +01:00
parent b5cd0cc2d5
commit a19d12d6d7

View file

@ -16,7 +16,10 @@ let packages = [
fennel fennel
]; ];
join = ps: builtins.concatStringsSep ";" ps; join = ps: builtins.concatStringsSep ";" ps;
luapath = join (builtins.map (f: "${f}/share/lua/${lua.luaversion}/?.lua") packages); luapath = join (builtins.map (f:
"${f}/share/lua/${lua.luaversion}/?.lua;" +
"${f}/share/lua/${lua.luaversion}/?/init.lua"
) packages);
luacpath = join (builtins.map (f: "${f}/lib/lua/${lua.luaversion}/?.so") packages); luacpath = join (builtins.map (f: "${f}/lib/lua/${lua.luaversion}/?.so") packages);
in writeScriptBin "fennelrepl" '' in writeScriptBin "fennelrepl" ''