From dbc2ce566ede5ad0f36c5bd8e3d651ffeaa7c148 Mon Sep 17 00:00:00 2001 From: Yury Shvedov Date: Fri, 15 Mar 2024 08:25:38 +0300 Subject: [PATCH] [nix] Make compatible with NIXOS_OZONE_WL #65 Change-Id: Idc29e7479892f5fdd9f739bd1ab20ada57e5dcde --- nix/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/default.nix b/nix/default.nix index 95b6638..d1e66df 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -56,7 +56,8 @@ stdenvNoCC.mkDerivation # use makeWrapper on electron binary to make it call our asar package makeWrapper "${electron}/bin/electron" "$out/bin/yandex-music" \ - --add-flags "$out/share/nodejs/yandex-music.asar" + --add-flags "$out/share/nodejs/yandex-music.asar" \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}" install -Dm644 "./app/favicon.png" "$out/share/pixmaps/yandex-music.png" install -Dm644 "./app/favicon.png" "$out/share/icons/hicolor/48x48/apps/yandex-music.png"