Closed avermel closed 3 months ago
Cool! If you have time, please, make a PR for this issue.
Add this override to overrides.nix so that the file looks like this:
...
updateExtensions {
# https://github.com/nix-community/nix-vscode-extensions/issues/31
asf.apache-netbeans-java = _: { sourceRoot = "extension"; };
# https://github.com/nix-community/nix-vscode-extensions/issues/52
vadimcn.vscode-lldb = _: {
postInstall = ''
cd "$out/$installPrefix"
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./adapter/codelldb
patchelf --add-rpath "${pkgs.lib.makeLibraryPath [ pkgs.zlib ]}" ./lldb/lib/liblldb.so
'';
};
}
The default package is a VSCodium with vadimcn.vscode-lldb
. Run it (e.g., nix run .# .
) and confirm in the PR that the extension works.
Describe in the PR description how to test that it works.
The problem happens on a non-NixOS linux machine with a rather old distro. I am able to run the extension by applying patchelf to the extension binaries as: