-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tooling): Fix Nix buld for rustier sile #1871
fix(tooling): Fix Nix buld for rustier sile #1871
Conversation
Use pkg.nix for most of sile's build Nix expression and document in comments the small differences between pkg.nix and Nixpkgs' `sile/default.nix` expression.
Thanks! The runtime issue is #1870. It works run from the source directory but paths aren't worked out to run from the system—which is something I just discovered trying to spin up packaging for the develop branch. To date I'd been testing only from my devel environment. Working on that now. |
pkg.nix
Outdated
''; | ||
|
||
# remove forbidden references to $TMPDIR | ||
preFixup = lib.optionalString stdenv.isLinux '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one on the other hand a rather common thing you see in Nixpkgs, but we should verify it is still needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would I confirm if this is needed? Would the build fail with a warning about it if there was a problem? Because just dropping this block entirely seems to allow the Flake to continue running just fine. See #1941.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would I confirm if this is needed?
I'm pretty sure that if you remove it and the Nix build succeeds, it should be OK.
I will also note I get a lot of failure CI emails. |
6c9f048
to
5fb45f8
Compare
Just in case anybody is following along and has no idea what is happening here, when this merges you'll be able to run the development version of SILE complete with Rusty CLI just by installing Nix on your system then running: $ nix run github:sile-typesetter/sile/develop LuaJIT is now the default, but you can run anything you want, e.g.: $ nix run github:sile-typesetter/sile/develop#sile-lua5_3 Add |
Many many thanks @doronbehar. |
Fixes #1865
Building sort of works now, only running
sile
fails with: