summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Hilhorst <git@hilhorst.be>2019-04-17 11:42:37 +0200
committerPatrick Hilhorst <git@hilhorst.be>2019-04-17 11:46:44 +0200
commitf9d9c610188462b1d6fc0f5cc661e06777282162 (patch)
tree6c380f025507555d47fc530366672522fecd7588
parentf8564ae9749f789dec79f53d842d8c2b5d0b746e (diff)
downloadnixpkgs-f9d9c610188462b1d6fc0f5cc661e06777282162.tar
nixpkgs-f9d9c610188462b1d6fc0f5cc661e06777282162.tar.gz
nixpkgs-f9d9c610188462b1d6fc0f5cc661e06777282162.tar.bz2
nixpkgs-f9d9c610188462b1d6fc0f5cc661e06777282162.tar.lz
nixpkgs-f9d9c610188462b1d6fc0f5cc661e06777282162.tar.xz
nixpkgs-f9d9c610188462b1d6fc0f5cc661e06777282162.tar.zst
nixpkgs-f9d9c610188462b1d6fc0f5cc661e06777282162.zip
vscode: use absolute predetermined path instead of heuristic
Fixes #59725
-rw-r--r--pkgs/applications/editors/vscode/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vscode/default.nix b/pkgs/applications/editors/vscode/default.nix
index 189c49cde35..a98ac42b4f8 100644
--- a/pkgs/applications/editors/vscode/default.nix
+++ b/pkgs/applications/editors/vscode/default.nix
@@ -108,6 +108,9 @@ in
 
         mkdir -p $out/share/pixmaps
         cp $out/lib/vscode/resources/app/resources/linux/code.png $out/share/pixmaps/code.png
+
+        # Override the previously determined VSCODE_PATH with the one we know to be correct
+        sed -i "/ELECTRON=/iVSCODE_PATH='$out/lib/vscode'" $out/bin/code
       '';
 
     preFixup = lib.optionalString (system == "i686-linux" || system == "x86_64-linux") ''