-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Brave: add arm64 support #298042
Brave: add arm64 support #298042
Conversation
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.
Now it looks good to go.
Please squash everything and fix possible problems.
a8e2088
to
3fec0ac
Compare
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.
Hum, let's reword the commit message:
brave: add aarch64-linux support
- Refactor update.sh to deal with both x86_64-linux and aarch64-linux packages.
Besides, LGTM.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1568 |
Done. |
Delete the gibberish in the commit message. |
Sorry didnt realize. We should be all set now. |
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.
LGTM. Waiting an Armlinux user.
Result of |
Result of |
}; | ||
# Expression generated by update.sh; do not edit it by hand! | ||
{ hostPlatform, callPackage }: { | ||
brave = if hostPlatform.isAarch64 |
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.
This moves brave
to brave.brave
(so brave.meta
doesn't exist, and the clean-up label is still there). Could something like let brave = something; in brave
be done here?
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.
I'm going to need some help on this one.
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.
Try to find something like brave = callPackage <path> { };
in all-packages.nix
and replace it with inherit (callPackages <path> { }) brave;
.
}; | ||
# Expression generated by update.sh; do not edit it by hand! | ||
{ hostPlatform, callPackage }: { | ||
brave = if hostPlatform.isAarch64 |
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.
Try
brave = if hostPlatform.isAarch64 | |
if hostPlatform.isAarch64 |
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.
If I remove brave i get a the following linting error Expecting a binding like 'path = value;' or 'inherit attr;'
. When building the package I get error: syntax error, unexpected IF
.
{ hostPlatform, callPackage }: { | ||
brave = if hostPlatform.isAarch64 |
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.
{ hostPlatform, callPackage }: { | |
brave = if hostPlatform.isAarch64 | |
{ hostPlatform, callPackage }: | |
if hostPlatform.isAarch64 |
I believe it should help, but I can't test.
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.
That doesn't work I get the same error as mentioned prior. Is there anything else we can do to get rid of clean up label. I have successfully built the package on both systems.
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.
I'll have a try later today.
Refactor update.sh to deal with both x86_64-linux and aarch64-linux packages.
Result of 1 package built:
|
Description of changes
Accidentally closed original pr after rebasing to fix merge conflicts. This resolves issue #278278.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.