Merge pull request #174047 from wyndon/session-wayland

This commit is contained in:
Sandro 2022-05-27 19:18:19 +02:00 committed by GitHub
commit 10637cd09d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
, stdenvNoCC
, fetchurl
, appimageTools
, makeWrapper
}:
let
@ -25,7 +26,7 @@ stdenvNoCC.mkDerivation {
inherit version pname;
src = appimage;
nativeBuildInputs = [ copyDesktopItems ];
nativeBuildInputs = [ copyDesktopItems makeWrapper ];
desktopItems = [
(makeDesktopItem {
@ -46,6 +47,9 @@ stdenvNoCC.mkDerivation {
mkdir -p $out/
cp -r bin $out/bin
wrapProgram $out/bin/session-desktop-appimage-${version} \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
runHook postInstall
'';