Integrating vadimcn.codelldb with Neovim on NixOS: Python Module Error

Hi NixOS Community,

I’m trying to configure the vscode-extensions.vadimcn.vscode-lldb package to work with Neovim’s DAP, but I’m running into an issue where the debugger fails due to a missing Python module (six.moves). Here’s the full traceback I get:

Traceback (most recent call last): File "<input>", line 1, in <module> ModuleNotFoundError: No module named 'six.moves'

Steps I’ve Tried

  1. Running codelldb directly:
    I executed: /nix/store/<hash>-vscode-extension-vadimcn-vscode-lldb-1.10.0/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb --port 13370

Then, I tested the connection using: nc -zv 127.0.0.1 13370
While nc confirms that the connection succeeds, the codelldb process closes the connection and logs the six.moves error.

  1. Overriding codelldb with python3Packages.six:
    I tried to include the six module by overriding the attributes:
let
  codelldb = pkgs.vscode-extensions.vadimcn.vscode-lldb.overrideAttrs (oldAttrs: {
    buildInputs = [ pkgs.python312Packages.six ];
  });
in
{
  programs.neovim = {
    extraPackages = with pkgs; [
      ...
      codelldb
    ];
}

However, after linking it to the DAP and running the debugger, the issue persists — codelldb still throws the missing six.moves error.

Questions

  1. Is there a better way to include the six module in the codelldb environment?
  2. Has anyone successfully configured vadimcn.codelldb with Neovim on NixOS?
  3. Could this be an issue with how the Python environment for codelldb is isolated in the Nix package?

Any advice or suggestions would be greatly appreciated!