Closed nawordar closed 3 months ago
Here is the repository with the flake: https://github.com/nawordar/nix-resilient-manual. Installing Nix and running this command should be enough to reproduce:
nix --experimental-features 'nix-command flakes' build github:nawordar/nix-resilient-manual
Greetings,
Which version of resilient.sile are you packaging, and with which dependencies?
The reported error "Invalid color specification" is at line ...are/lua/5.1/sile/packages/framebox/graphics/renderer.lua:46̀̀
in dependency ptable.sile 2.x -- but resilient.sile 2.3 (latest release) requires ptable.sile 3.0 (and the makeColorHelper
code indeed changed there)
So there is a strong chance you are experiencing a version mismatch issue.
You can check the rockspec to verify the minimal dependency for each co-dependent module.
It's also in the release notes but you might have to check the dependencies' own dependencies as well too...
That's indeed ptable 2.x used with resilient 3.x -- See my comments in your commit here: https://github.com/nawordar/nixpkgs/commit/81b3a52995f2907cd544e6629e6115ac3d781034
Thank you, it does look like the problem
For the record, I don't want to refrain anyone buiding their own packaging of my SILE modules for different operating systems. Alerque did it for Arch Linux AUR.
But as I've written there, I don't have the time (or the skills) to help here, let alone become a co-maintainer. So as far as I am concerned, the officially supported installation method is based on luarocks, since this is the package manager recommended by SILE since v0.13.
You've already helped me a lot. I just thought this was a resilient.sile bug, now I know that it was on my side
I'm trying to package resilient.sile on nixpkgs. To make sure that everything works correctly, I tried rendering the manual, but got the error in the title.
I will link the repository with the Nix flake so it is easier to reproduce, once I publish it.
SILE/Lua version
SILE v0.14.17 (LuaJIT 2.1.1693350652)
Traceback