0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

[nix] Make compatible with NIXOS_OZONE_WL #65

Change-Id: Idc29e7479892f5fdd9f739bd1ab20ada57e5dcde
This commit is contained in:
Yury Shvedov 2024-03-15 08:25:38 +03:00
parent 9c375fee35
commit dbc2ce566e

View File

@ -56,7 +56,8 @@ stdenvNoCC.mkDerivation
# use makeWrapper on electron binary to make it call our asar package # use makeWrapper on electron binary to make it call our asar package
makeWrapper "${electron}/bin/electron" "$out/bin/yandex-music" \ 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/pixmaps/yandex-music.png"
install -Dm644 "./app/favicon.png" "$out/share/icons/hicolor/48x48/apps/yandex-music.png" install -Dm644 "./app/favicon.png" "$out/share/icons/hicolor/48x48/apps/yandex-music.png"