Serious (and seriously cursed) thought: there's tools for exporting Docker images directly from Nix without needing docker-build, but could you do the same for making Flatpak packages without needing Flatpak?
Asking because for some reason `pdm sync` calls g++ when called from Nix and `clang` when called from flatpak-builder.
I can figure it out, just made me curious.