diff options
Diffstat (limited to 'vendor/libghostty-vt/nix/devShell.nix')
| -rw-r--r-- | vendor/libghostty-vt/nix/devShell.nix | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/vendor/libghostty-vt/nix/devShell.nix b/vendor/libghostty-vt/nix/devShell.nix index df08fc20..b530c56c 100644 --- a/vendor/libghostty-vt/nix/devShell.nix +++ b/vendor/libghostty-vt/nix/devShell.nix @@ -12,7 +12,7 @@ #, glxinfo # unused ncurses, nodejs, - nodePackages, + prettier, oniguruma, parallel, pkg-config, @@ -109,7 +109,7 @@ in nodejs # Linting - nodePackages.prettier + prettier alejandra pinact typos @@ -227,8 +227,22 @@ in unset SDKROOT unset DEVELOPER_DIR + # AFL++ needs to use the Homebrew/system Apple toolchain directly. + # The Nix compiler wrapper variables leak a Nix linker into afl-cc, + # which breaks even trivial fuzz harness links on macOS. + unset NIX_CC + unset NIX_CFLAGS_COMPILE + unset NIX_LDFLAGS + unset LD + unset CC + unset CXX + unset CFLAGS + unset CPPFLAGS + unset LDFLAGS + # 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/:$//') + export PATH="/opt/homebrew/opt/llvm/bin:/opt/homebrew/bin:/usr/local/opt/llvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" ''); } |
