nix-community / nix-on-droid

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

TODO: provide overlay to fix packages for android #23

Closed Gerschtli closed 4 years ago

Gerschtli commented 4 years ago

Provide an overlay to fix/patch some packages like https://github.com/termux/termux-packages does with htop for example: https://github.com/termux/termux-packages/tree/master/packages/htop.

These patched packages should be available through the nix-on-droid binary cache.

puffnfresh commented 4 years ago

I've started an overlay here, starting with htop:

https://github.com/puffnfresh/nix-files/blob/master/nix-on-droid/termux-overlay.nix

I tried openssh, but it looks like I struggle to build it at all because of /var/empty existing:

https://github.com/puffnfresh/nix-files/blob/droid/openssh/nix-on-droid/termux-overlay.nix

Gerschtli commented 4 years ago

Nice! Maybe we should also work on an overlay for nix itself as indicated in this issue: https://github.com/NixOS/nix/issues/3237

t184256 commented 4 years ago

Landed @Gerschtli's overlay for htop in 93d081c, fixes to other packages should use it as an example.