Commit graph

10 commits

Author SHA1 Message Date
Anderson Torres 643635b58c zig_0_10: rename patches 2023-08-10 10:49:35 +00:00
figsoda 17d404ee80 zig.hook: rename from zigHook
This makes using specific versions of zig easier (without overrides)
2023-08-10 02:37:53 +00:00
figsoda 3b74f1205c zig_0_11: init
https://ziglang.org/download/0.11.0/release-notes.html
2023-08-06 02:14:04 +00:00
figsoda 36ca4639d7 zig: introduce generic.nix to remove duplicate code
- zig_0_9: move tests to installCheck
- zig_0_9: set ZIG_GLOBAL_CACHE_DIR instead of HOME
2023-08-06 02:14:04 +00:00
Anderson Torres d485da9d00 zig_0_10: refactor
- Use rec-less, overlay-style overridable recursive attributes (in effect since
NixOS#119942);
- Add decoration hooks over installCheckPhase
- Use doInstallCheck instead of doCheck.
- Directly sets env.ZIG_GLOBAL_CACHE_DIR instead of using preBuild
- Add meta.changelog
2023-07-08 20:40:38 -03:00
Jakub Konka 18c80c166f zig: 0.10 fix macOS build
Relevant upstream issue: ziglang/zig#14559

The patch is a backport of fixes that landed in zig-master and can
be removed with zig-0.11 release.

Additionally, make sure we link statically against LLVM to avoid
unpleasant runtime surprises originating from mixing static and
dynamic LLVM libraries.

Finally, unbreak Zig 0.10.1 on macOS.
2023-03-14 14:02:39 +01:00
Dmitry Bogatov 1360d4cc51 zig: build offline documentation 2023-03-05 13:56:53 -05:00
Winter ac44b254b4 zig_0_9: build with baseline CPU target
26b9a2f4a1 changes Zig 0.10 to build the
compiler (notably *not* its outputs, at least not by default) with
its baseline CPU target, but we should ideally do it for both versions
to increase reproducibility, as well as increase the number of users who
are able to use Hydra-provided Zig binaries.

This also adds a comment above the flag in 0.10, to explain why we're adding
the flag, as we do with the RPATH one.

See https://github.com/NixOS/nixpkgs/issues/214356 and https://github.com/NixOS/nixpkgs/issues/185665
for further context.
2023-02-16 21:59:16 -05:00
Adam Stephens 26b9a2f4a1
zig_0_10: switch to baseline cpu target for better compatibility 2023-02-12 09:22:11 -05:00
Matthew "strager" Glazar db76c9e04a zig_0_10: init at 0.10.1
On Linux, upgrade Zig to version 0.10.1.

On macOS/Darwin, Zig version 0.10.1 is broken, so keep 0.9.1.

Several Zig-using packages are broken with Zig version 0.10.1, so pin
those packages to Zig version 0.9.1.
2023-01-28 00:01:06 -08:00