From 002cbb31631965ffae4a9cd005fd3101cc51cfd7 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 25 Mar 2026 21:10:55 -0400 Subject: [PATCH] osx env: get lldb from nixpkgs, with apple-signed debugserver --- default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 4304271a..244ee8fc 100644 --- a/default.nix +++ b/default.nix @@ -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