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
terra updates #69072
terra updates #69072
Conversation
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Terra heavily depends on its ability to interface with C APIs, but without scanning NIX_CFLAGS_COMPILE, it's awkward and annoying to set up imports correctly (by scanning and adding the flags yourself) in every single project. Luckily most of the Clang initialization is hidden away, but the Lua code for the Terra library handles all the high-level stuff, so we patch it in there. This allows simple examples like: C = terralib.includec("zlib.h") to work instantly, provided `zlib` is a Nix dependency. Signed-off-by: Austin Seipp <aseipp@pobox.com>
Signed-off-by: Austin Seipp <aseipp@pobox.com>
@GrahamcOfBorg build terra |
Signed-off-by: Austin Seipp <aseipp@pobox.com>
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.
Thanks for fixing this up. I vaguely remember running into these issues when I packaged this originally. Made terra hard to work with.
Commits looks ok but they could be fixup
/squashed
a bit nicer.
nix-review pr 69072
✔️
The evaluator seems to explode on this right now but I can't tell why. Have to ask Graham or something I suppose... |
@GrahamcOfBorg eval |
Looks like this should be backported to 19.09 as well? Without NIX_CFLAGS_COMPILE support this seems to be not so useful. |
8025787#diff-7dd944a54541412ed4394ad3f33de9faR37 is causing a grahamcofborg-eval failure in #69388 |
This was fixed in aad639d |
Fixes eval after NixOS#69072 Resolved conflict in pkgs/tools/security/thc-hydra/default.nix Basically had to revert a1c0e10 which adapts NixOS#69210 to master that doesn't yet have 329a88e
Fixes eval on darwin after #69072 Tested using maintainers/scripts/eval-release.sh before and after to see that the fix works
Motivation
Updates to the latest Terra to fix a few bugs, and also includes a patch to automatically search
NIX_CFLAGS_COMPILE
for C compiler options. This means the following Terra program works out of the box (whereas you had to fix it before):Things done
sandbox
innix.conf
on non-NixOS)Notify maintainers
cc @jb55