fix: ollision between vscode & vscode-insider - /lib/vscode/chrome_crashpad_handler

This commit is contained in:
ryan4yin
2023-05-31 21:01:44 +08:00
parent 5b99c2ceca
commit 3f24fa464d
3 changed files with 48 additions and 45 deletions

View File

@@ -112,6 +112,21 @@
git-lfs # used by huggingface models
devenv.packages."${pkgs.system}".devenv
# the vscode insiders is designed to run alongside the main build,
# with a separate code-insiders command and a different config path
#
# TODO install vscode into systemPackages to avoid binary collision error temporarily
# has collision between vscode & vscode-insider - /lib/vscode/chrome_crashpad_handler
((pkgs.vscode.override { isInsiders = true; }).overrideAttrs (oldAttrs: {
src = (builtins.fetchTarball {
url = "https://code.visualstudio.com/sha/download?build=insider&os=linux-x64";
# you need to update this sha256 every time you update vscode insiders
# the latest sha256 is printed in the error message of `sudo nixos-rebuild switch`
sha256 = "sha256:1f996x5i85zf0hpd7jx18zdqdp9nhxhf6zn83ai0njphz1dj354p";
});
version = "latest";
}))
];
# replace default editor with neovim