Skip to content

Commit

Permalink
Merge pull request #244205 from 5aaee9/master
Browse files Browse the repository at this point in the history
qq: support wayland ozone
  • Loading branch information
onny committed Jul 19, 2023
2 parents af9826e + 5e35de6 commit 21061e4
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
, at-spi2-core
, autoPatchelfHook
, wrapGAppsHook
, makeWrapper
}:

let
Expand All @@ -42,7 +43,8 @@ stdenv.mkDerivation {

nativeBuildInputs = [
autoPatchelfHook
wrapGAppsHook
# makeBinaryWrapper not support shell wrapper specifically for `NIXOS_OZONE_WL`.
(wrapGAppsHook.override { inherit makeWrapper; })
dpkg
];

Expand Down Expand Up @@ -87,7 +89,10 @@ stdenv.mkDerivation {
'';

preFixup = ''
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ gjs ]}")
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ gjs ]}"
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
)
'';

meta = with lib; {
Expand Down

0 comments on commit 21061e4

Please sign in to comment.