TODO: build proot on-device
For full management of the system and smooth upgrade path that was laid out in #18 we should also manage proot with nix and make it buildable on-device (and cache the result so that the users won't actually have to do that). Ironically, now it's easier to cross-compile that to native-compile it, as it has to be linked with bionic.
Maybe it'd be acceptable to just ape the build environment from termux and use LLVM. Maybe not.
https://github.com/NixOS/nixpkgs/commit/1e1d29c2af646b21c04f7a27614317a19ee01bc5 is talking self-hosting toolchains, maybe this could be revisited now.
Just that I know what to subscribe to, would this issue being solved mean the .activationPackage could be a flake check, please?
You mean, will become buildable without --impure? Yes.
Could you perhaps permalink to the impure part, just for educational purposes?
https://github.com/nix-community/nix-on-droid/blob/248cc0806120fac9214f503dee0eaf0f47740dd0/modules/environment/login/default.nix#L87
Thank you, @t184256