osu-lazer{,-bin}: add native Wayland option

Link: https://github.com/NixOS/nixpkgs/pull/363908
Link: https://github.com/ppy/osu/discussions/22651
This commit is contained in:
NAHO
2024-12-10 15:01:26 +01:00
parent bf02ddbadb
commit 4a6cfdf711
2 changed files with 6 additions and 0 deletions
@@ -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
+2
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