[Backport release-26.05] spotify: fix wayland when NIXOS_OZONE_WL is set (#533642)

This commit is contained in:
Maximilian Bosch 2026-06-20 16:10:07 +00:00 committed by GitHub
commit e495119a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -240,7 +240,7 @@ stdenv.mkDerivation (finalAttrs: {
} \
--prefix LD_LIBRARY_PATH : "$librarypath" \
--prefix PATH : "${zenity}/bin" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime=true}}"
--run 'if [[ "''${NIXOS_OZONE_WL:-default}" == "1" ]]; then unset DISPLAY; fi'
runHook postFixup
'';