qq: support wayland ozone
This commit is contained in:
parent
b4c0a4370e
commit
5e35de6ff1
@ -19,6 +19,7 @@
|
|||||||
, at-spi2-core
|
, at-spi2-core
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -42,7 +43,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
wrapGAppsHook
|
# makeBinaryWrapper not support shell wrapper specifically for `NIXOS_OZONE_WL`.
|
||||||
|
(wrapGAppsHook.override { inherit makeWrapper; })
|
||||||
dpkg
|
dpkg
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -87,7 +89,10 @@ stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
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; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user