Closed Schuwi closed 8 months ago
When trying to use arduino-nix for building a aarch64-linux nixos I got
arduino-nix
aarch64-linux
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
builtinPackages
wrap-arduino-cli.nix
"host": "arm64-linux-gnueabihf"
package_index.json
(aarch64|arm64)-linux-gnu
Also see the comment in the PRs code for further details.
Thanks!
Awesome project by the way :sunglasses:
When trying to use
arduino-nix
for building aaarch64-linux
nixos I goteven when using an empty
I discovered that the issue arises from one (or actually even multiple) of the
builtinPackages
inwrap-arduino-cli.nix
. They are listed with"host": "arm64-linux-gnueabihf"
inpackage_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-L13337C14Also see the comment in the PRs code for further details.