IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
33 stars 13 forks source link

[FR] - Support aarch64-linux in Nix Flake #805

Closed sempruijs closed 3 days ago

sempruijs commented 3 weeks ago

External

Area Regarding the build system outputs

Describe the feature you'd like I would like to build cardano-cli on aarch64-linux via the nix flake. I use aarch64-linux in a virtual machine on my mac and raspberry pi is also aarch64-linux. Here's what I would like to do:

nix build github:intersectmbo/cardano-node#packages.aarch64-linux.cardano-cli Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

I think you can build it on aarch64-linux but as far I know not via the nix flake. If I'm missing something please let me know.

carbolymer commented 2 weeks ago

Related comment and PR: https://github.com/IntersectMBO/cardano-cli/pull/686#issuecomment-2033090278

carbolymer commented 2 weeks ago

I use aarch64-linux in a virtual machine

Do you need to build on aarch64-linux natively, or a cross-compilation to aarch64-linux would be sufficient? We have a PR enabling cross-compilation to that architecture - does that work for you: https://github.com/IntersectMBO/cardano-cli/pull/819 ?

sempruijs commented 2 weeks ago

I need it natively. I want to use my raspi 5 as an airgaped machine. I have nix installed on it and when cardano-cli has a new update I could move the files of this repository via a usb stick on my pi and compile the new version. If someone has a better alternative to work around this I'll would love to hear it. Using nix build blablabla is way easier for me then manually installing all sorts of tools because of my visual impairment.

smelc commented 3 days ago

Reopening because #819 introduced production of aarch64-linux binaries (via cross compilation), but it's still not supported by the flake (which is what this issue is about).