See https://github.com/bite-your-idols/Gamestarter - it works on LibreELEC generic x86_64-12.0.1.
I've had no success on the generic-legacy build however.
I've been trying to install retroarch from this, and it doesn't connect. It installs the repo, but that's it. Any suggestions? I'm on libre 12.0.1