parent
b12803b6d9
commit
bcc3da34b4
@ -2,6 +2,7 @@
|
|||||||
, unzip, libsecret, libXScrnSaver, libxshmfence, buildPackages
|
, unzip, libsecret, libXScrnSaver, libxshmfence, buildPackages
|
||||||
, atomEnv, at-spi2-atk, autoPatchelfHook
|
, atomEnv, at-spi2-atk, autoPatchelfHook
|
||||||
, systemd, fontconfig, libdbusmenu, glib, buildFHSEnv, wayland
|
, systemd, fontconfig, libdbusmenu, glib, buildFHSEnv, wayland
|
||||||
|
, libglvnd
|
||||||
|
|
||||||
# Populate passthru.tests
|
# Populate passthru.tests
|
||||||
, tests
|
, tests
|
||||||
@ -113,6 +114,9 @@ let
|
|||||||
# The credentials should be stored in a secure keychain already, so the benefit of this is questionable
|
# The credentials should be stored in a secure keychain already, so the benefit of this is questionable
|
||||||
# in the first place.
|
# in the first place.
|
||||||
rm -rf $out/lib/vscode/resources/app/node_modules/vscode-encrypt
|
rm -rf $out/lib/vscode/resources/app/node_modules/vscode-encrypt
|
||||||
|
|
||||||
|
# Unbundle libglvnd as VSCode doesn't include libGLESv2.so.2 which is necessary for GPU acceleration
|
||||||
|
rm -rf $out/lib/vscode/libGLESv2.so
|
||||||
'') + ''
|
'') + ''
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
@ -121,6 +125,7 @@ let
|
|||||||
gappsWrapperArgs+=(
|
gappsWrapperArgs+=(
|
||||||
# Add gio to PATH so that moving files to the trash works when not using a desktop environment
|
# Add gio to PATH so that moving files to the trash works when not using a desktop environment
|
||||||
--prefix PATH : ${glib.bin}/bin
|
--prefix PATH : ${glib.bin}/bin
|
||||||
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd ]}
|
||||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||||
--add-flags ${lib.escapeShellArg commandLineArgs}
|
--add-flags ${lib.escapeShellArg commandLineArgs}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user