Skip to content

Conversation

cursedquail
Copy link

@cursedquail cursedquail commented Aug 20, 2025

This mirrors some functionality in upstream zig itself, where it will use these env vars to discover system headers for @cImport

I'm having it run in the configure phase, which feels most appropriate to myself and one other person in this ziggit thread.

I have not added automated tests to this: I am willing to, but I'd appreciate advice on how best to go about that, if it's desired.

This, along with #40, builds on a project I'm working on, using zig 0.15.0-dev.1564+2761cc8be. I have tested it within a nix shell. I have not tested inside of a "true" nix build, but I don't anticipate that working much differently. Famous last words?

This mirrors some functionality in upstream zig itself, where it will
use these env vars to discover system headers for `@cImport`

I'm having it run in the configure phase, which feels most appropriate
to myself and one other person in [this ziggit
thread](https://ziggit.dev/t/aro-translate-c-nixos-integration/11576/2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant