Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit be8dd7d

Browse files
committedMay 30, 2025·
fix nix
1 parent 199d2f1 commit be8dd7d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@
6060
xcpretty
6161
zizmor
6262
];
63+
shellHook = ''
64+
# Copied from https://github.com/ghostty-org/ghostty/blob/c4088f0c73af1c153c743fc006637cc76c1ee127/nix/devShell.nix#L189-L199
65+
# We want to rely on the system Xcode tools in CI!
66+
unset SDKROOT
67+
unset DEVELOPER_DIR
68+
# We need to remove the nix "xcrun" from the PATH.
69+
export PATH=$(echo "$PATH" | awk -v RS=: -v ORS=: '$0 !~ /xcrun/ || $0 == "/usr/bin" {print}' | sed 's/:$//')
70+
'';
6371
};
6472

6573
default = pkgs.mkShellNoCC {

0 commit comments

Comments
 (0)
Please sign in to comment.