This is very much a work in progress, and can most likely be improved in quite a lot of ways, but seems to work for what is it.
This is not affiliated with, or supported by, Hex-Rays in any way.
Build and install:
flatpak-builder --user --install build-dir com.hexrays.IDA-Free.yaml