altair: Respect NIXOS_OZONE_WL to enable Wayland mode
This commit is contained in:
parent
7239f0198e
commit
f7c81d7cd3
@ -1,4 +1,4 @@
|
||||
{ lib, appimageTools, fetchurl }:
|
||||
{ lib, appimageTools, makeWrapper, fetchurl }:
|
||||
|
||||
let
|
||||
pname = "altair";
|
||||
@ -17,6 +17,10 @@ appimageTools.wrapType2 {
|
||||
extraInstallCommands = ''
|
||||
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
||||
|
||||
source "${makeWrapper}/nix-support/setup-hook"
|
||||
wrapProgram $out/bin/${pname} \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||
|
||||
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||
|
Loading…
Reference in New Issue
Block a user