zon2nix - Convert the dependencies in `build.zig.zon` to a Nix expression

7 Likes

Dope! Thanks for all the work you’ve been doing for Zig in Nix

3 Likes

Hey @figsoda I was wondering if you could help me out.

Do you happen to know if ZON supports arrays, and if yes, what is the correct syntax?

Also, I was wondering why do you specifically test field names for leading @ here:

return if (name[0] == '@') string_literal.parseAlloc(alloc, name[1..]) else name;

Is it something specific to build.zig.zon rather than ZON format in general?

Thanks!