Merge pull request #257645 from surfaceflinger/lunar-client-wayland

This commit is contained in:
Artturi 2023-10-15 07:20:04 +03:00 committed by GitHub
commit 129176b48e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ appimageTools { appimageTools
, fetchurl , fetchurl
, lib , lib
, makeWrapper
}: }:
let let
@ -19,6 +20,9 @@ appimageTools.wrapType2 rec {
extraInstallCommands = '' extraInstallCommands = ''
mv $out/bin/{${pname}-${version},${pname}} mv $out/bin/{${pname}-${version},${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 -Dm444 ${appimageContents}/launcher.desktop $out/share/applications/lunar-client.desktop install -Dm444 ${appimageContents}/launcher.desktop $out/share/applications/lunar-client.desktop
install -Dm444 ${appimageContents}/launcher.png $out/share/pixmaps/lunar-client.png install -Dm444 ${appimageContents}/launcher.png $out/share/pixmaps/lunar-client.png
substituteInPlace $out/share/applications/lunar-client.desktop \ substituteInPlace $out/share/applications/lunar-client.desktop \