nix: must not inject xcrun into PATH on macOS

This commit is contained in:
Mitchell Hashimoto
2025-03-11 14:48:47 -07:00
parent 7e2286eb8c
commit 3abbe6d3ba

View File

@@ -200,5 +200,9 @@ in
# and we need iOS too.
unset SDKROOT
unset DEVELOPER_DIR
# We need to remove "xcrun" from the PATH. It is injected by
# some dependency but we need to rely on system Xcode tools
export PATH=$(echo "$PATH" | awk -v RS=: -v ORS=: '$0 !~ /xcrun/ || $0 == "/usr/bin" {print}' | sed 's/:$//')
'');
}