package anoia assert macros and point fennelrepl at them

This commit is contained in:
Daniel Barlow
2024-04-20 14:59:14 +01:00
parent 7e19d80130
commit 8af4e9fd5b
4 changed files with 9 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ in writeScriptBin "fennelrepl" ''
package.cpath = ${lib.strings.escapeShellArg luacpath} .. ";" .. (package.cpath or "")
local fennel = require "fennel"
table.insert(package.loaders or package.searchers,1, fennel.searcher)
fennel['macro-path'] = "${anoia.dev}/share/lua/${lua.luaversion}/?.fnl;" .. fennel['macro-path']
local more_fennel = os.getenv("FENNEL_PATH")
if more_fennel then