Commit Graph

5 Commits

Author SHA1 Message Date
Jared Baur
1dfa285940 zig: use setupHook attribute on zig derivation
By moving the zig setup hook to the zig derivation itself, we allow for
zig to splice correctly with `callPackage`, meaning that the correct zig
can be pulled in during builds when zig is in `nativeBuildInputs` (for
example).

This change retains the `zig.hook` attribute for backward compatibility
by just pointing to the zig derivation. This also removes
`zig_default_flags`, since now the setup hook is not a derivation that
can be overridden. Overriding the build flags can now be done by setting
`dontSetZigDefaultFlags = true`.
2026-01-09 14:07:46 -08:00
Patryk Sondej
fcafa71408 zig: remove unneeded dynamic-linker option 2025-11-10 00:23:09 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Tristan Ross
9a060b90c1 zig: add fetcher 2025-06-06 11:42:54 -07:00
Tristan Ross
bac3beb820 zig: move passthru into a separate file 2025-06-06 11:42:49 -07:00