Continuing to try add wrap vscode in the wayland flags
This commit is contained in:
@@ -16,22 +16,16 @@ in {
|
|||||||
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.symlinkJoin {
|
package = pkgs.stdenv.mkDerivation {
|
||||||
name = "vscodium";
|
pname = pkgs.vscodium.pname;
|
||||||
pname = "vscodium";
|
version = pkgs.vscodium.version;
|
||||||
version = "1.0";
|
meta.mainProgram = pkgs.vscodium.meta.mainProgram;
|
||||||
paths = [pkgs.vscodium];
|
src = pkgs.writeScriptBin "codium" ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
buildInputs = [pkgs.makeWrapper];
|
exec ${pkgs.vscodium}/bin/codium --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform=wayland --disable-features=WaylandFractionalScaleV1 "$@"
|
||||||
|
|
||||||
postBuild = ''
|
|
||||||
wrapProgram $out/bin/codium \
|
|
||||||
--set-exec codium \
|
|
||||||
--add-flags "--enable-features=UseOzonePlatform" \
|
|
||||||
--add-flags "--enable-features=WaylandWindowDecorations" \
|
|
||||||
--add-flags "--ozone-platform=wayland" \
|
|
||||||
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
|
||||||
'';
|
'';
|
||||||
|
dontBuild = true;
|
||||||
|
dontConfigure = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
enableUpdateCheck = false;
|
enableUpdateCheck = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user