-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
bintools-wrapper: eliminate build references when cross-compiling #173952
bintools-wrapper: eliminate build references when cross-compiling #173952
Conversation
The wrapper had references to build platform bash and expand-response-params.
The shell change seems ok, but not sure about the buildPackages change. Can't that be changed in the derivation file itself? |
That would also require several more complex changes in the bootstrapping code for each platform. |
cc @Ericson2314, since you might have some familiarity with this |
I think I've encountered the issue this PR is trying to fix while trying to cross-compile GHC. A similar fix is needed for cc-wrapper.
As shown above, |
@Mindavi |
After adding
to
|
Best solution is to fix the incorrect logic in the wrappers themselves and adjust the stdenv bootstrapping accordingly: #304861 |
Should be resolved on master! |
Description of changes
The wrapper had references to build platform
bash
(stdenv.shell
) andexpand-response-params
. I'm not sure if this is the best way to fix it, but it seems to work. I was able to build both the native x86_64 stdenv and cross-compiled armv6l stdenv.A similar fix is likely needed for
cc-wrapper
.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes