diff options
author | K900 <me@0upti.me> | 2023-05-26 13:10:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 13:10:00 +0300 |
commit | f902e5b60272e80de7cda2354c00acacb04ccc0e (patch) | |
tree | d36ddec8c99fad08d357a677c87ceccafd7bd68c /pkgs/applications/editors | |
parent | ab0bd502bcb8d5f6000fdfff68ec5bdb16cb203c (diff) | |
parent | 9e87ab2007852d1d733977a2e3d66658d9392efe (diff) |
Merge pull request #233369 from K900/cursed-vscode-encryption
vscode: fix decrypting credentials after update
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/vscode/generic.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vscode/generic.nix b/pkgs/applications/editors/vscode/generic.nix index 1ad9bb25e72a1..7b7007910a5c6 100644 --- a/pkgs/applications/editors/vscode/generic.nix +++ b/pkgs/applications/editors/vscode/generic.nix @@ -104,6 +104,11 @@ let # Override the previously determined VSCODE_PATH with the one we know to be correct sed -i "/ELECTRON=/iVSCODE_PATH='$out/lib/vscode'" "$out/bin/${executableName}" grep -q "VSCODE_PATH='$out/lib/vscode'" "$out/bin/${executableName}" # check if sed succeeded + + # Remove native encryption code, as it derives the key from the executable path which does not work for us. + # The credentials should be stored in a secure keychain already, so the benefit of this is questionable + # in the first place. + rm -rf $out/lib/vscode/resources/app/node_modules/vscode-encrypt '') + '' runHook postInstall ''; |