-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
nix: cross-compilation adds native bash to the closure #81153
Comments
I wonder if the quick solution isn't a postUnpack hook that uses Further out, config.nix in nix HEAD no longer has paths in it, so this issue should go away. (It won't cross-compile to armv7l right now because rust throws a linker error when trying to build a cross-compile, but that's a separate issue). |
yeah, this is just about the |
@flokli I don't know if an issue there would help as it's already been fixed in HEAD. It seems to have been fixed by the partial rust rewrite, though, so I'm not sure how easily the fix backports to the current (2.3) nix releases. Thus my suggestion of the temporary hack until cross-compiling works for what is currently the unstable version of nix (i.e. nixUnstable in nixpkgs) |
Yeah, I think we should provide some working nix in nixpkgs. If the
|
This seems to be |
I'll try to get to that later today. I have to look at how the paths are used in nix to see if it wants a path to the binary or just the base storepath. |
@flokli I think we can close this now since #81317 was merged. The remaining build-platform deps of the runtime closure seem to be because the cross-compiling gcc puts its target (i.e. our host) platform binaries in its |
yes, this can be closed. Thanks for the fix! |
nix-build -A pkgsCross.armv7l-hf-multiplatform.nix
andpkgsCross.aarch64-multiplatform.nix
pull in the native bash, causingshare/nix/corepkgs/config.nix
to haveshell
point to an x86_64-linux executable:cc @samueldr @Ericson2314
The text was updated successfully, but these errors were encountered: