From fdb1afed1942720b53c479cc2a97aa317b6d00ef Mon Sep 17 00:00:00 2001 From: Anil Anar Date: Mon, 4 Dec 2023 13:25:13 +0100 Subject: [PATCH] vscode: add libGL.so.1 and libEGL.so.1 to vscode Fixes gpu acceleration for X and Wayland. --- pkgs/applications/editors/vscode/generic.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/vscode/generic.nix b/pkgs/applications/editors/vscode/generic.nix index 693ffb4e9441..5000393913c1 100644 --- a/pkgs/applications/editors/vscode/generic.nix +++ b/pkgs/applications/editors/vscode/generic.nix @@ -247,7 +247,11 @@ in ); postFixup = lib.optionalString stdenv.isLinux '' - patchelf --add-needed ${libglvnd}/lib/libGLESv2.so.2 $out/lib/vscode/${executableName} + patchelf \ + --add-needed ${libglvnd}/lib/libGLESv2.so.2 \ + --add-needed ${libglvnd}/lib/libGL.so.1 \ + --add-needed ${libglvnd}/lib/libEGL.so.1 \ + $out/lib/vscode/${executableName} ''; inherit meta;