diff options
Diffstat (limited to 'pkgs/simple/cgit-about-filter/default.nix')
| -rw-r--r-- | pkgs/simple/cgit-about-filter/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/simple/cgit-about-filter/default.nix b/pkgs/simple/cgit-about-filter/default.nix index a05020f..14b9aa9 100644 --- a/pkgs/simple/cgit-about-filter/default.nix +++ b/pkgs/simple/cgit-about-filter/default.nix @@ -1,6 +1,14 @@ -{ gitMinimal, lib, md4c, replaceVars }: +{ gitMinimal, lib, luajit, md4c, replaceVarsWith }: -replaceVars ./cgit-about-filter.lua { - git = lib.getExe gitMinimal; - md2html = lib.getExe md4c; +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 + ''; } |
