vscode: add libGL.so.1 and libEGL.so.1 to vscode
Fixes gpu acceleration for X and Wayland.
This commit is contained in:
parent
955aaaa916
commit
fdb1afed19
1 changed files with 5 additions and 1 deletions
|
@ -247,7 +247,11 @@ in
|
||||||
);
|
);
|
||||||
|
|
||||||
postFixup = lib.optionalString stdenv.isLinux ''
|
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;
|
inherit meta;
|
||||||
|
|
Loading…
Reference in a new issue