diff options
author | Indexyz <jiduye@gmail.com> | 2023-07-19 02:25:19 +0800 |
---|---|---|
committer | Indexyz <jiduye@gmail.com> | 2023-07-19 02:36:14 +0800 |
commit | 5e35de6ff1a7c04042f94148e51401564a074ff6 (patch) | |
tree | 0b9ae84b6168195d2c57b3e60a9783e362336485 /pkgs/applications/networking/instant-messengers/qq | |
parent | b4c0a4370ea1afc0696650c32005253f550a31d0 (diff) |
qq: support wayland ozone
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/qq')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/qq/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/networking/instant-messengers/qq/default.nix b/pkgs/applications/networking/instant-messengers/qq/default.nix index 63077827369dc..5a72c1bd1e83c 100644 --- a/pkgs/applications/networking/instant-messengers/qq/default.nix +++ b/pkgs/applications/networking/instant-messengers/qq/default.nix @@ -19,6 +19,7 @@ , at-spi2-core , autoPatchelfHook , wrapGAppsHook +, makeWrapper }: let @@ -42,7 +43,8 @@ stdenv.mkDerivation { nativeBuildInputs = [ autoPatchelfHook - wrapGAppsHook + # makeBinaryWrapper not support shell wrapper specifically for `NIXOS_OZONE_WL`. + (wrapGAppsHook.override { inherit makeWrapper; }) dpkg ]; @@ -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; { |