forked from DGNum/liminix
fennelrepl add PREFIX/?/init.lua to lua load path
This commit is contained in:
parent
b5cd0cc2d5
commit
a19d12d6d7
1 changed files with 4 additions and 1 deletions
|
@ -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" ''
|
||||||
|
|
Loading…
Reference in a new issue