osx env: get lldb from nixpkgs, with apple-signed debugserver

This commit is contained in:
Roland Conybeare 2026-03-25 21:10:55 -04:00
commit 002cbb3163

View file

@ -334,7 +334,9 @@ let
++ (if pkgs.stdenv.isLinux then [
pkgs.gdb
pkgs.strace
] else [])
] else [
pkgs.llvmPackages_18.lldb
])
++ [
pkgs.which
pkgs.man
@ -804,6 +806,10 @@ in
# dependencies on host system libraries
# glpath = pkgs.lib.makeLibraryPath [ ];
# debugserver interacts with a local process to debug it.
# requires code signing, so nix can't replicate it.
export LLDB_DEBUGSERVER_PATH=/Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver
# choose a temp directory that can outlive nix-shell
export TMPDIR=$(getconf DARWIN_USER_TEMP_DIR)
export TMP=$TMPDIR