From a19d12d6d73264ddccd67c75bf4e5a64c56d4771 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 8 Jul 2023 23:05:00 +0100 Subject: [PATCH] fennelrepl add PREFIX/?/init.lua to lua load path --- pkgs/fennelrepl/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/fennelrepl/default.nix b/pkgs/fennelrepl/default.nix index 16696a9..24749b2 100644 --- a/pkgs/fennelrepl/default.nix +++ b/pkgs/fennelrepl/default.nix @@ -16,7 +16,10 @@ let packages = [ fennel ]; 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); in writeScriptBin "fennelrepl" ''