How to package some java rhythm game?

https://aur.archlinux.org/packages/beatoraja-modernchic

I tried run it in dev shell with openjdk (override enableJavaFX = true;) installed.
Then game successfully launched, but no audio (bad for rhythm game)
The log in terminal complained about jportaudio, which is a java binding of portaudio and it is not yet in nixpkgs.

I tried install pkgs.portaudio (not jportaudio) in the dev shell, same log, no difference.
I dunno what to do next.

Hey I managed to get it working, all that was needed was to manually compile portaudio-java and add the lib to LD_LIBRARY_PATH.

I made a flake for running beatoraja 0.8.8 (it’s my very first flake so it’s prolly bad but you can use it as reference): hamcha/beatoraja-nix

1 Like