Is it possible to get codelldb on nixos? If so how? I was not able to find it on search.nixos.org
1 Like
I tried installing it on MacOS on an M1, but it fails:
nix-shell -p vscode-extensions.vadimcn.vscode-lldb
...
error: could not compile `codelldb` (lib) due to previous error
error: builder for '/nix/store/f95vsxqfmpnzpxmin7la742pp535hxbk-vscode-lldb-adapter-1.9.2.drv' failed with exit code 101;
last 10 log lines:
> ___cpp_closure_15622432981194360367 in liblldb-b44b174ba8722502.rlib(46dcb0150d5c479f-cpp_closures.o)
> "lldb::SBInstructionList::GetInstructionAtIndex(unsigned int)", referenced from:
> ___cpp_closure_6565914844347871446 in liblldb-b44b174ba8722502.rlib(46dcb0150d5c479f-cpp_closures.o)
> "lldb::SBBreakpoint::GetLocationAtIndex(unsigned int)", referenced from:
> ___cpp_closure_5306796064114665451 in liblldb-b44b174ba8722502.rlib(46dcb0150d5c479f-cpp_closures.o)
> ld: symbol(s) not found for architecture arm64
> clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
>
>
> error: could not compile `codelldb` (lib) due to previous error
For full logs, run 'nix-store -l /nix/store/f95vsxqfmpnzpxmin7la742pp535hxbk-vscode-lldb-adapter-1.9.2.drv'.
error: 1 dependencies of derivation '/nix/store/qqphbnwqvskx8wmbapqr7dcndfbiazf7-vscode-extension-vadimcn-vscode-lldb-1.9.2.drv' failed to build
Ah, yes! It is broken on master nixpkgs. However, there’s a branch of nixpkgs with a working codelldb (and corresponding PR that has not been merged). The fix works great (been using it for several months now with no problems ). https://github.com/DieracDelta/vimconfig/blob/a0493511d5a05e004c8944b8d1a4e251d7a42333/flake.nix#L16
Thank you both, I will try it