mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
osu-lazer: add native Wayland option (#363908)
This commit is contained in:
commit
1caf076d6b
@ -5,6 +5,7 @@
|
|||||||
fetchzip,
|
fetchzip,
|
||||||
appimageTools,
|
appimageTools,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
|
nativeWayland ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -91,8 +92,11 @@ else
|
|||||||
''
|
''
|
||||||
. ${makeWrapper}/nix-support/setup-hook
|
. ${makeWrapper}/nix-support/setup-hook
|
||||||
mv -v $out/bin/${pname} $out/bin/osu!
|
mv -v $out/bin/${pname} $out/bin/osu!
|
||||||
|
|
||||||
wrapProgram $out/bin/osu! \
|
wrapProgram $out/bin/osu! \
|
||||||
|
${lib.optionalString nativeWayland "--set SDL_VIDEODRIVER wayland"} \
|
||||||
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
|
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
|
||||||
|
|
||||||
install -m 444 -D ${contents}/osu!.desktop -t $out/share/applications
|
install -m 444 -D ${contents}/osu!.desktop -t $out/share/applications
|
||||||
for i in 16 32 48 64 96 128 256 512 1024; do
|
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
|
install -D ${contents}/osu!.png $out/share/icons/hicolor/''${i}x$i/apps/osu!.png
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
xorg,
|
xorg,
|
||||||
udev,
|
udev,
|
||||||
vulkan-loader,
|
vulkan-loader,
|
||||||
|
nativeWayland ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDotnetModule rec {
|
buildDotnetModule rec {
|
||||||
@ -69,6 +70,7 @@ buildDotnetModule rec {
|
|||||||
runHook preFixup
|
runHook preFixup
|
||||||
|
|
||||||
wrapProgram $out/bin/osu! \
|
wrapProgram $out/bin/osu! \
|
||||||
|
${lib.optionalString nativeWayland "--set SDL_VIDEODRIVER wayland"} \
|
||||||
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
|
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
|
||||||
|
|
||||||
for i in 16 32 48 64 96 128 256 512 1024; do
|
for i in 16 32 48 64 96 128 256 512 1024; do
|
||||||
|
Loading…
Reference in New Issue
Block a user