From f9d9c610188462b1d6fc0f5cc661e06777282162 Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Wed, 17 Apr 2019 11:42:37 +0200 Subject: [PATCH] vscode: use absolute predetermined path instead of heuristic Fixes #59725 --- pkgs/applications/editors/vscode/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/editors/vscode/default.nix b/pkgs/applications/editors/vscode/default.nix index 189c49cde35a..a98ac42b4f81 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") ''