bouk / arduino-nix

Manage your arduino-cli with Nix
MIT License
16 stars 4 forks source link

Fix aarch64 architecture recognition #5

Closed Schuwi closed 8 months ago

Schuwi commented 8 months ago

When trying to use arduino-nix for building a aarch64-linux nixos I got

error: Unsupported platform aarch64-linux

even when using an empty

pkgs.wrapArduinoCLI {}

I discovered that the issue arises from one (or actually even multiple) of the builtinPackages in wrap-arduino-cli.nix. They are listed with "host": "arm64-linux-gnueabihf" in package_index.json which the (aarch64|arm64)-linux-gnu regex did not match. Example: https://github.com/bouk/arduino-indexes/blob/464543eb2f8c234e764db01400230112c40a1c80/index/package_index.json#L13331C1-L13337C14

Also see the comment in the PRs code for further details.

bouk commented 8 months ago

Thanks!

Schuwi commented 8 months ago

Awesome project by the way :sunglasses: