Open arilotter opened 1 month ago
Sorry I didn't see this issue @arilotter. Since I created this repo someone added solana-cli to Nixpkgs, so can probably upgrade to that here.
However the problem of linking cargo-sbf and the most recent compiler persists. The only way to make Solana's toolchain work in Nix without modifying source is to run rustup somewhere.
I'm open to ideas on this, including running patchELF. Feel free to ping me on Telegram or Discord to discuss.
No worries!
I've ended up building a flake that has a functional Solana Rust toolchain, a functional cargo sbf
command, and also the anchor
CLI supporting anchor build
.
https://github.com/arilotter/solana-flake
Thanks for your work here, it was very helpful to get this far.
The very last hurdle to overcome for me would be getting the solana
rust toolchain to work alongside rust-analyzer
- but i might need to build it myself for that.
When running
cargo build --release --target sbf-solana-solana
insidenix develop github:nasadorian/solflake
, you'll get an error thatPerhaps we need to patchelf the rust binaries manually?