nix-community / nix-vscode-extensions

Nix expressions for VSCode and OpenVSX extensions [maintainers: @deemp, @AmeerTaweel]
MIT License
169 stars 9 forks source link

build codelldb from github #34

Closed cathaysia closed 1 year ago

cathaysia commented 1 year ago

the codelldb in marketplace is just a downloader, it download the truely plugin from github .

if it's possible replace codelldb with the github ones?

I build codelldb by this codes:

  vscode-lldb = pkgs.vscode-utils.buildVscodeExtension {
    name = "vadimcn.vscode-lldb";
    vscodeExtPublisher = "vadimcn";
    vscodeExtName = "codelldb";
    src = (pkgs.fetchurl {
      url = "https://github.com/vadimcn/codelldb/releases/download/v1.9.2/codelldb-x86_64-linux.vsix";
      sha256 = "sha256-iYvSKyUFsSZx/ufS/hq7OE3GDRP1/sK0tlDQ2sP4PXU=";
      name = "codelldb.zip";
    }).outPath;
    vscodeExtUniqueId = "vadimcn.vscode-lldb";
    version = "1.9.2";
  };
deemp commented 1 year ago

It seems to work. Try the vscodium-with-extensions from flake.nix. https://github.com/nix-community/nix-vscode-extensions/blob/8cbadbbc055b57ab9b73061a3da7da8beb2315e0/flake.nix#L117

You can contribute versions of that extension for other platforms. See Extra extensions.

deemp commented 1 year ago

@cathaysia, I switched to nvfetcher. See https://github.com/nix-community/nix-vscode-extensions#extra-extensions