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
raspberrypifw: fix cross 'builds' #44349
raspberrypifw: fix cross 'builds' #44349
Conversation
@GrahamcOfBorg build pkgsCross.raspberryPi.raspberrypiWirelessFirmware |
Success on x86_64-linux (full log) Attempted: pkgsCross.raspberryPi.raspberrypiWirelessFirmware Partial log (click to expand)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay. This is actually something where we could make it a fixed output so that it is the same for all versions. There is no real cross compilation going on here.
See https://nixos.org/nix/manual/#sec-advanced-attributes and outputHash, outputHashAlgo, outputHashMode.
Failure on x86_64-darwin (full log) Attempted: pkgsCross.raspberryPi.raspberrypiWirelessFirmware Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pkgsCross.raspberryPi.raspberrypiWirelessFirmware Partial log (click to expand)
|
Yeah, changing to fixed-output sounds better. Or maybe instead of open-coding the ar + tar, use |
Or actually, both should be done, they are not mutually exclusive. |
810cda9
to
bed0266
Compare
@dezgeg Thanks, I added fixed output attributes. Not sure what you mean about using dpkg- I haven't seen derivation that unpacks two src before so don't know best practice |
What I mean is you can use |
bed0266
to
22ce4af
Compare
@dezgeg oh, of course. have updated |
Motivation for this change
unprefixed
ar
is not found when cross compiling. the change in this PR allows it to buildThings done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)