Build a .flatpak file using nix
instead of flatpak-builder
Image generated with midjourney. The snow represents nix transforming the flatpak packages/containers
The function flatpakenv.buildApp
prepares a script which can be run to export a .flatpak file.
This code is brittle, don't use it. I'm using it anyway.