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: init at 2020.714.0 #85021
Conversation
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.
It runs just fine, but I get no sound, and the following is printed:
ALSA lib dlmisc.c:285:(snd1_dlobj_cache_get) Cannot open shared library /nix/store/gac5607idcq82hmlr2filyjlygizwgky-alsa-lib-1.1.9/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): /nix/store/gac5607idcq82hmlr2filyjlygizwgky-alsa-lib-1.1.9/lib/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory)
Could just be a quirk of me not being on NixOS, though. I'd recommend finding someone else to verify or refute my claim.
It's easier said than done, but did you try building from source ? Apparently there are utilities to build dot net projects in nixpkgs, see an example with keepass: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/keepass/default.nix |
It seems that osu!lazer's code is licensed under MIT as shown here, but the assets are licensed under CC-BY-NC 4.0 as shown here. I don't know where that puts the binary releases, and I also don't know how to describe 'part MIT, part CC', but it's something to take note of. |
@symphorien
Seems the format of project file is too new for |
Ah ok. Thanks for trying anyway. |
4e5eee8
to
6ce24ae
Compare
It works on nixos but still crash in my lubuntu VM. It seems to be something wrong with X11 and/or OpenGL.
|
OpenGL is impure and sometimes does not work on non NixOS: see https://github.com/guibou/nixGL for a possible solution. |
Bumped to 2020.421.0 with some tiny fixes.
I checked nixGL and it run successfully in my lubuntu VM, without display or audio problem. @cole-h What do you think? |
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 get a build failure using nixpkgs-review
:
builder for '/nix/store/1nrhdv1cgyh9r8dqmdsss9z82f3na340-osu-lazer-2020.421.0.drv' failed with exit code 2; last 10 log lines:
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:14.51
installing
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
osu.Desktop -> /nix/store/ghp1mgw009wnzdia1swg5piwmhba5llx-osu-lazer-2020.421.0/lib/osu/
/nix/store/shr8mc5hx0vasv92b307mzymj2b5fxxl-stdenv-linux/setup: eval: line 1307: syntax error near unexpected token `('
cannot build derivation '/nix/store/ysx6famjfkaqn93dnb9c99i0lpbzbz07-env.drv': 1 dependencies couldn't be built
[288 built (1 failed), 10 copied (60.1 MiB), 38.4 MiB DL]
error: build of '/nix/store/ysx6famjfkaqn93dnb9c99i0lpbzbz07-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/85021
1 package failed to build:
osu-lazer
Ping @cole-h |
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 can't really approve this because I still don't get audio on my Arch+Nix system. But it builds fine and runs fine apart from that.
ALSA lib dlmisc.c:283:(snd_dlobj_cache_get0) Cannot open shared library /nix/store/i58krnmjdd5aq47jxxljz99csk91v1s8-alsa-lib-1.2.2/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): /nix/store/i58krnmjdd5aq47jxxljz99csk91v1s8-alsa-lib-1.2.2/lib/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory)
LGTM, otherwise.
[5 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/85021
1 package built:
osu-lazer
EDIT: Also, please update the PR title again ;)
Rebased and bumped to 2020.508.2 @cole-h I've setup-ed an clean Arch Linux virtual machine but cannot reproduce the ALSA error. Audio and video both works fine. Is Installed packages in my test environment:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2-large-files-in-nix-store-how-to-remove-them/7120/2 |
Ping @cole-h |
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.
Diff LGTM, binary runs. Still no sound, which means it's a problem with my crufty machine (and thus not a blocker for merging this).
[4 built, 7 copied (700.8 MiB), 171.9 MiB DL]
https://github.com/NixOS/nixpkgs/pull/85021
1 package built:
osu-lazer
@cole-h What is blocking this now? |
Waiting on an interested party that has merge capabilities and is willing to exercise that ability. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
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.
Built and tested
2020.714.0 is out now too so needs a bump
Hey, I made a PR for this back in May, but was never able to get it working properly so I closed it in favour of this one. Built this on my NixOS machine and it worked perfectly including no audio issues. Other than needing a bump to version 2020.714.0 this looks good to me. ❤️ |
Also the PR title needs to be updated to reflect version bump |
I'm mentioning this here because maybe it's a packaging bug, it looks like none of the networked functionality of osu is working - downloading beatmaps, making an osu account, etc. Anyone else observing this? I'm guessing this might be because of the disabled tamper-detection? Kind of makes it unusable since you need to have osu to even make an osu account, which is necessary even to download beatmaps out-of-band :) |
Motivation for this change
Add a new package
osu-lazer
, a rhythm game.Home page: https://osu.ppy.sh
Repository (osu!lazer): https://github.com/ppy/osu
It seems to have darwin releases, but I'm not familiar with it. Anyone help?Now it is built from source, targeting only x86_64-linux.
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)