diff options
| author | Xoddiel d'Croy <xoddiel.dcroy@gmail.com> | 2025-11-29 03:02:25 +0100 |
|---|---|---|
| committer | Xoddiel d'Croy <xoddiel.dcroy@gmail.com> | 2025-11-29 04:58:30 +0100 |
| commit | 890281173ce6390e780c4e86e8c71192ca2ec2aa (patch) | |
| tree | 78cded2a675a2257ba116fd0e85bc69135068e59 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 381d2403cad697f5b4bb533d345881baa11755d0 (diff) | |
luaPackages.luacov: fix HTML report generation
Fixed up the HTML report generation capability of the `luacov` Lua
package. It is not entirely clear to me whether this used to work, and
got broken at some point, or whether it never worked.
The issue is that `luacov` uses the `datafile` rock to resolve its
static files for HTML reports (such as `prettier.js`, `report.css`,
etc.), which does not properly work in a Nix environment. This is
because `datafile` relies on the specific structure of the usual
LuaRocks directory to scan for files, which `nixpkgs` messes with.
Since we can't rely on `datafile` to detect a LuaRocks environment, I've
added a manual copy step to the derivation, merging the static files
with the other Lua files. We can then utilize the source-relative opener
to find the appropriate files.
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions
