osx env: get lldb from nixpkgs, with apple-signed debugserver
This commit is contained in:
parent
d3e67a23c6
commit
002cbb3163
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue