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
Fix Mobile NixOS regressions after the pkg-config changes in Nixpkgs #177
Fix Mobile NixOS regressions after the pkg-config changes in Nixpkgs #177
Conversation
This will be fixed more appropriately once work on integrating the upcoming build-system changes for 2.2 is done. With an upstream patch.
This update knows about $PKG_CONFIG
I tried it on
and got
|
using
|
Not really sure what is going on, qemu does not build either so it is likely there is a problem with my set up instead of this branch.
|
Same thing with:
|
Oof, I'm currently using Nix 2.3.6 as present in nix stable. But this is a known issue, NixOS/nix#3471 I think it is a regression in Nix, but I do not know if it actually is and what is going to happen. I also do not grok the error, so I could make the suggested fix in the thread, but then I would be doing something without actually knowing., |
I tried the following:
|
I also tried the following to no avail (same error)
|
Thanks to @samueldr I got a patch that I could use to compile it on that revision and lead me to a successful boot: https://gist.github.com/samueldr/da46fe2b234a74daad3735a055fedf50 I tested the hello image and got a mobile nixos logo and a cursor. |
(The failing CI comes from a weirdness in Nixpkgs, looking into it, but it doesn't affect this PR.) |
The way Nixpkgs handles
pkg-config
during cross is by now using a prefixed binary name.Many tools are not ready for such a thing, here I am fixing the Mobile NixOS specific issues.
Tested against Nixpkgs b3251e04ee470c20f81e75d5a6080ba92dc7ed3f, which currently fail.
Note that this breaks compatibility with Nixpkgs before that pkg-config change.
Fixes #176
@ingenieroariel, can you confirm that, at least on b3251e04ee470c20f81e75d5a6080ba92dc7ed3f, things work, and also that the changes look okay? Thanks!