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

cross compile support #86

Closed
blaggacao opened this issue Jan 12, 2021 · 2 comments
Closed

cross compile support #86

blaggacao opened this issue Jan 12, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request multiarch cross machine expressions

Comments

@blaggacao
Copy link
Contributor

blaggacao commented Jan 12, 2021

Is your feature request related to a problem? Please describe.
On my attempt to cross-compile for a RaspberryPi host, I got frustrated with a refusal to cross compile.

(I'm a layman, more than others who claim it, but) I believe, the reason is that nixflk currently doesn't hanle the crossSytem attribute, which I reference from my own context and ongoing line of thought here and here.

Describe the solution you'd like
Not sure how to sort this out short vs long term. A consolidated numtide/flake-utils backed solution would be ideal. (see the linked passages).

Describe alternatives you've considered
Too little a knowledge to be serious on alternatives.

Additional context

I'm trying to get some PI-based "home-automation" going.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nrdxp nrdxp added enhancement New feature or request multiarch cross machine expressions labels Feb 17, 2021
@nrdxp
Copy link
Collaborator

nrdxp commented Feb 20, 2021

Is this a duplicate of #72? Cross compiling packages already works by pulling from pkgsCross as usual, so at the very least, the title may need revision.

I am also able to build for aarch by adding:

{
  boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
}

So I'm not sure if this may solve the issue, at least for building aarch packages on x86.

@blaggacao
Copy link
Contributor Author

Is this a duplicate of #72?

Indeed! Or at least subsumable thereunder. Thanks for pointing this out.

@nrdxp nrdxp added the duplicate This issue or pull request already exists label Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request multiarch cross machine expressions
Projects
None yet
Development

No branches or pull requests

2 participants