nixpkgs/pkgs/development/compilers/zig
Alex James cae03b78b4
zig: fix build on Darwin with sandbox enabled
During stage 3 of compilation, Zig calls `std.zig.system.darwin.macos.detect`,
which parses /System/Library/CoreServices/.SystemVersionPlatform.plist and
/System/Library/CoreServices/SystemVersion.plist[^1] to determine the OS
version. These paths are inaccessible when the sandbox is enabled, which causes
the build to fail with `OSVersionDetectionFail`[^2]. Fix the build with the
relaxed sandbox option by adding these paths to `__impureHostDeps`.

[^1]: cd62005f19/lib/std/zig/system/darwin/macos.zig
[^2]: https://github.com/NixOS/nixpkgs/issues/287861#issuecomment-2148703491
2024-06-16 17:51:10 -05:00
..
0.9 treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
0.10 treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
0.11 treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
0.12 zig: fix build on Darwin with sandbox enabled 2024-06-16 17:51:10 -05:00
0.13 zig: fix build on Darwin with sandbox enabled 2024-06-16 17:51:10 -05:00
generic.nix zig: fix build on Darwin with sandbox enabled 2024-06-16 17:51:10 -05:00
hook.nix treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
setup-hook.sh zig: reword setup hook 2023-09-09 15:27:11 +00:00