Due to flatpak's sandboxed nature, it has to bundle libraries such as graphics drivers. However, it (the runtime) provides a way to work around this a bit: org.freedesktop.Platform.GL.host.
The PKGBUILD would need to install the binaries to the appropriate /var directory. Symlinks wouldn't work, as they wouldn't resolve inside of bubblewrap.
Flatpak also has a utility built in that runs on every flatpak update so that the NVIDIA drivers are synced, however this needs to be ran whenever the host NVIDIA driver is updated.
Due to flatpak's sandboxed nature, it has to bundle libraries such as graphics drivers. However, it (the runtime) provides a way to work around this a bit:
org.freedesktop.Platform.GL.host
.The PKGBUILD would need to install the binaries to the appropriate
/var
directory. Symlinks wouldn't work, as they wouldn't resolve inside of bubblewrap.I'm working on documentation to improve the situation for drivers like this over at https://github.com/flatpak/flatpak-docs/pull/382.
https://blog.tingping.se/2018/08/26/flatpak-host-extensions.html
Flatpak also has a utility built in that runs on every
flatpak update
so that the NVIDIA drivers are synced, however this needs to be ran whenever the host NVIDIA driver is updated.