{ gitMinimal, lib, luajit, md4c, replaceVarsWith }: replaceVarsWith { src = ./cgit-about-filter.lua; replacements = { git = lib.getExe gitMinimal; md2html = lib.getExe md4c; }; # cgit runs Lua filters with LuaJIT. It reports errors in them only as # an error page, which ends up in the cache rather than the response. postCheck = '' ${lib.getExe luajit} -b "$target" /dev/null ''; }