Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for 32-bit ARM CPUs (32-bit ARMNix was unable to install the bootstrap package) #5

Closed
KiaraGrouwstra opened this issue Mar 13, 2019 · 5 comments

Comments

@KiaraGrouwstra
Copy link

I'm probably in need for slightly more explicit usage instructions, but currently, opening Nix yields me the error dialog Nix was unable to install the bootstrap package.

Steps:

@t184256
Copy link
Collaborator

t184256 commented Mar 13, 2019

Does an apk from https://nix-on-droid.unboiled.info work?

Is https://nix-on-droid.unboiled.info/bootstrap/bootstrap-aarch64.zip reachable and downloadable from the device?

Is the device aarch64?

@KiaraGrouwstra
Copy link
Author

I do think it's aarch64 yeah (nexus 6).
The apk from there does yield me the same result.
I can download the zip from there.

@t184256
Copy link
Collaborator

t184256 commented Mar 13, 2019

I don't like to bring the bad news, but as far as I can google, it has a Snapdragon 805 and it's 32-bit.

Unfortunately there are no Nix builds for 32-bit ARM that I'm aware of, and Hydra doesn't make prebuilt packages for these ones either, so this is a bit out of reach for my small project.

Actually, I tried to cross-compile statically-linked Nix for 32 bit ARM. That's actually how all these project of mine did start: I've read another excellent @matthewbauer's blog post on statically-linking Nix and attempted to combine it with another excellent post of his on cross-compiling binaries to Android with Nix. I failed at so many levels that I just went ahead and bought an aarch64 tablet, and it was so well-supported that I got a working demo in single afternoon.

So, for now at least, it seems like you're out of luck. But if you could teach me how to build Nix that runs on your device, Nix-way or manually from Termux, I'm all ears.

@t184256 t184256 changed the title Nix was unable to install the bootstrap package No support for 32-bit ARM CPUs (32-bit ARMNix was unable to install the bootstrap package) Mar 13, 2019
@KiaraGrouwstra
Copy link
Author

That definitely explains it -- sorry for bugging! :)

@matthewbauer
Copy link
Member

Someone did have a binary cache for arm32, but it's not officially supported:

https://discourse.nixos.org/t/armv7l-builds-on-cachix/788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants