Use patched Zig 0.15.2 on macOS to avoid Xcode 26.4 issue

This updates our Nix flake to use the Homebrew bottled Zig 0.15.2 which
contains a patch to work around the issue with Zig 0.15.x and Xcode
26.4.
This commit is contained in:
Mitchell Hashimoto
2026-04-21 09:34:33 -07:00
parent 62fdd885e0
commit d2f86028bb
3 changed files with 15 additions and 4 deletions

View File

@@ -75,7 +75,10 @@
in {
devShells = forAllPlatforms (pkgs: {
default = pkgs.callPackage ./nix/devShell.nix {
zig = zig.packages.${pkgs.stdenv.hostPlatform.system}."0.15.2";
zig =
if pkgs.stdenv.hostPlatform.isDarwin
then zig.packages.${pkgs.stdenv.hostPlatform.system}.brew."0.15.2"
else zig.packages.${pkgs.stdenv.hostPlatform.system}."0.15.2";
wraptest = pkgs.callPackage ./nix/pkgs/wraptest.nix {};
zon2nix = zon2nix;