tidal-hifi: add flag for NIXOS_OZONE_WL

This commit is contained in:
Jacob Birkett 2023-08-13 20:22:39 -07:00
parent 32a52099bd
commit fcdadd5e4e

View File

@ -105,6 +105,7 @@ stdenv.mkDerivation (finalAttrs: {
postFixup = ''
makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
"''${gappsWrapperArgs[@]}"
substituteInPlace $out/share/applications/tidal-hifi.desktop \
--replace "/opt/tidal-hifi/tidal-hifi" "tidal-hifi"