nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.32k stars 74 forks source link

TODO: build proot on-device #19

Open t184256 opened 5 years ago

t184256 commented 5 years ago

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.

t184256 commented 3 years ago

https://github.com/NixOS/nixpkgs/commit/1e1d29c2af646b21c04f7a27614317a19ee01bc5 is talking self-hosting toolchains, maybe this could be revisited now.

mightyiam commented 2 months ago

Just that I know what to subscribe to, would this issue being solved mean the .activationPackage could be a flake check, please?

t184256 commented 2 months ago

You mean, will become buildable without --impure? Yes.

mightyiam commented 2 months ago

Could you perhaps permalink to the impure part, just for educational purposes?

t184256 commented 2 months ago

https://github.com/nix-community/nix-on-droid/blob/248cc0806120fac9214f503dee0eaf0f47740dd0/modules/environment/login/default.nix#L87

mightyiam commented 2 months ago

Thank you, @t184256