osu-lazer: add native Wayland option (#363908)

This commit is contained in:
Thiago Kenji Okada 2024-12-10 16:07:08 +00:00 committed by GitHub
commit 1caf076d6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@
fetchzip,
appimageTools,
makeWrapper,
nativeWayland ? false,
}:
let
@ -91,8 +92,11 @@ else
''
. ${makeWrapper}/nix-support/setup-hook
mv -v $out/bin/${pname} $out/bin/osu!
wrapProgram $out/bin/osu! \
${lib.optionalString nativeWayland "--set SDL_VIDEODRIVER wayland"} \
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
install -m 444 -D ${contents}/osu!.desktop -t $out/share/applications
for i in 16 32 48 64 96 128 256 512 1024; do
install -D ${contents}/osu!.png $out/share/icons/hicolor/''${i}x$i/apps/osu!.png

View File

@ -16,6 +16,7 @@
xorg,
udev,
vulkan-loader,
nativeWayland ? false,
}:
buildDotnetModule rec {
@ -69,6 +70,7 @@ buildDotnetModule rec {
runHook preFixup
wrapProgram $out/bin/osu! \
${lib.optionalString nativeWayland "--set SDL_VIDEODRIVER wayland"} \
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
for i in 16 32 48 64 96 128 256 512 1024; do