bintools-wrapper: eliminate build references when cross-compiling#173952
bintools-wrapper: eliminate build references when cross-compiling#173952lopsided98 wants to merge 1 commit intoNixOS:stagingfrom
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 = trueset 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.shto update generated release notes