New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osu-lazer: fix runtime error and bump to 2020.1225.0 #106377
Conversation
Result of 1 package built:
|
Result of 1 package built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Played one song it seems to be working well.
Maybe it is missing some X11 libs? I can take a look, but it is probably better to merge this PR first. |
pkgs/games/osu-lazer/default.nix
Outdated
|
||
makeWrapper $out/lib/osu/osu\! $out/bin/osu\! \ | ||
--set DOTNET_ROOT "${dotnet-netcore}" \ | ||
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDeps}" | ||
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDeps}" \ | ||
--add-flags --tk # FIXME: Default SDL2 has cursor issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this flag optional (with default to true)? This way, it would be easier to debug this SDL issue (and also allow someone to force SDL/Tk if they want).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, I tested without this flag and seems to work fine for me. I am using i3wm
, are you using a Wayland desktop maybe @oxalica ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this flag optional (with default to true)?
I'm not sure how to make an enable-by-default optional flag. Maybe check an environment variable like OSU_NO_DEFAULT_FLAGS
?
Are you using a Wayland desktop?
No. I'm using KDE with almost default settings (X currently).
services.xserver = {
enable = true;
layout = "us";
dpi = 144;
desktopManager.plasma5.enable = true;
displayManager.sddm.enable = true;
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how to make an enable-by-default optional flag. Maybe check an environment variable like OSU_NO_DEFAULT_FLAGS?
I was thinking something like this:
nixpkgs/pkgs/servers/http/unit/default.nix
Lines 47 to 57 in b83e5db
++ optional withPython2 python2 | |
++ optionals withPython3 [ python3 ncurses ] | |
++ optional withPHP73 php73-unit | |
++ optional withPHP74 php74-unit | |
++ optional withPerl530 perl530 | |
++ optional withPerl532 perl532 | |
++ optional withPerldevel perldevel | |
++ optional withRuby_2_5 ruby_2_5 | |
++ optional withRuby_2_6 ruby_2_6 | |
++ optional withRuby_2_7 ruby_2_7 | |
++ optional withSSL openssl; |
So we could have a flag, withTk
, that when set would do something like this:
# Pseudo-code, I think string concat uses another operator
''
makeWrapper $out/lib/osu/osu\! $out/bin/osu\! \
--set DOTNET_ROOT "${dotnet-netcore}" \
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDeps}" \
" ++ with optional withTk "--add-flags --tk"
But well, if it is working with SDL2 now I don't see a reason to complicate.
I finally make it work by default by pressing I checked the working setting of
I reverted the flag |
Maybe it would be better to report this problem upstream? |
Result of 1 package built:
|
Tested:
|
@SuperSandro2000 Can we have this merged 🤔 ? |
Motivation for this change
Fix #106030
Upstream changed to SDL2 backend by default in ppy/osu@285e62b , which cause cursor stuck on my system.I have no idea how to fix the cursor issue. Anyone familiar with SDL2 and C# can help?
Currently, parameter
--tk
is added to wrapper to force using legacy osuTK backend.It now uses new default SDL2 backend.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)