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
Add armv6l-linux & armv7l-linux as cross jobs #2667
Conversation
This is a cheap way to get 32-bit ARM working. We don’t support it officially but lots of people have raspberry pis and similar hardware they want to install the Nix package manager on.
Ran into the cross perl problem. I've seen this mentioned before, but I'm not clear on the best fix.
|
Unfortunately, releaseTools.nixBuild does not separate native and non-native build inputs. As an alternative, we can just use buildPackages to get the native version of some packages like: - pkgconfig - git - curl - utillinux
Hopefully fixed with 1996af4 |
Gets farther, up to compiling nix itself, but pkg-config still has issues. Tried a few combinations of including pkg-config and various envvars without success.
|
It should work now as soon as NixOS/nixpkgs@987d4b9 hits release-18.09. |
Compiles. And runs on ARM! Great work! |
Anything blocking this (other than handling merge conflicts)? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/how-to-install-nix-package-manager-on-raspbian/2035/12 |
Let's merge #3765 (also @matthewbauer's work, ignore my name at the top of the PR) and then fixing the conflicts here should be quite easy. |
@matthewbauer What would it take to move this to the current flake based builds? |
This fixes the libatomic detection.
Yeah - it's just moving some stuff around. Updated to resolve conflicts. |
@edolstra I think this is a very worthwhile change, could you take a look? |
This doesn't seem to build the binaryTarball for armv6/7, does it? |
i would be very interested in this to get it working on armhf ubuntu touch devices, is there anything i can do to help? |
same here, anything missing and how can I support? |
I'm happy to merge this if someone updates the PR. |
only @matthewbauer can do that i think |
Tarball targets would be great to have |
Updated with binaryTarball |
@domenkozar when you have time, can you have looksie?😁 |
Note that github actions run |
macOS CI is hitting #2667 |
As our cross-compiling story is quite good these days, and we have a few Nix contributors that know it inside-out, it's reasonable to support ARMv6/7 and see if we are able to maintain it. Looking at the diff there's little to be maintained inside Nix repo anyway. |
Sweet, what is the easiest way to track those cross-compile jobs on Hydra and where would I fetch the binary tarball from? |
https://hydra.nixos.org/job/nix/master/binaryTarballCross.x86_64-linux.armv6l-linux & https://hydra.nixos.org/job/nix/master/binaryTarballCross.x86_64-linux.armv7l-linux Click on a job and there's a download link for the tarball. |
This is a cheap way to get 32-bit ARM working. We don’t support it
officially but lots of people have raspberry pis and similar hardware
they want to install the Nix package manager on.