zig: misc Darwin fixes (#389137)

Changed files
+1 -4
pkgs
development
compilers
+1 -4
pkgs/development/compilers/zig/generic.nix
···
"doc"
];
-
# strictDeps breaks zig when clang is being used.
-
# https://github.com/NixOS/nixpkgs/issues/317055#issuecomment-2148438395
-
strictDeps = !stdenv.cc.isClang;
+
strictDeps = true;
# On Darwin, Zig calls std.zig.system.darwin.macos.detect during the build,
# which parses /System/Library/CoreServices/SystemVersion.plist and
···
# OSVersionDetectionFail when the sandbox is enabled.
__impureHostDeps = lib.optionals stdenv.hostPlatform.isDarwin [
"/System/Library/CoreServices/.SystemVersionPlatform.plist"
-
"/System/Library/CoreServices/SystemVersion.plist"
];
preBuild = ''