-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
dotnet: add initial support for arm64 #86037
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
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.
nixpkgs-review
says nothing's changed, so this at least isn't detrimental. I don't have an aarch64 system to test with, though.
ETA: Diff LGTM ;)
Nothing changed
https://github.com/NixOS/nixpkgs/pull/86037
Thanks @cole-h, the time you have taken to look at this is appreciated! |
Hey, I'm going to run through this and add download hashes for the other attributes too, so please hold off on merging. Will confirm when updated. |
Amended and pushed. Now all the available ARM64 downloads have their correct hashes and at least build cleanly. |
`jellyfin` appeared unsupported on `aarch64` due to `dotnet` platform support in nixpkgs, but there are ARM64 downloads of the `dotnet` SDKs available. This change follows the kind of pattern used in the `firecracker` packaging to support selective x86_64/arm64 downloads. With this change I can build `jellyfin` on a Raspberry Pi 4. The other content hashes have been filled in, and all build successfully, but they have not been further tested.
@GrahamcOfBorg build dotnet |
@GrahamcOfBorg build dotnet-sdk_2 dotnet-sdk_3 |
Hey @Mic92, I'm not familiar with how the build bot works, but here are the relevant attributes, all available for both aarch64 and x86_64 unless otherwise noted:
|
@purcell It was able to build both. |
Great, thanks for this! |
Motivation for this change
jellyfin
appeared unsupported onaarch64
due todotnet
platform support in nixpkgs, but there are ARM64 downloads of thedotnet
SDKs available. This change follows the kind of pattern used in thefirecracker
packaging to support selective x86_64/arm64 downloads.With this change I can build
jellyfin
on a Raspberry Pi 4,but it wasn't obviously practical to go through all the SDK versions to fill in the ARM64 content hashes, so I have punted on those that were not immediately necessary.I'd be very happy to receive guidance if this is a wrongheaded approach or if further work is needed. Thanks!
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)