Skip to content

Commit 0a69ec6

Browse files
committed
fix nix
1 parent 820f63b commit 0a69ec6

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy