Practical overview
When it fits
Use it when assembling a Nix-based Solana development shell on x86_64 Linux, particularly when you want cargo-build-bpf to use the provided BPF tools instead of automatically downloading replacements.
Who it is for
- Developers who use Nix flakes to prepare a Solana development environment.
- Solana program developers who want the BPF toolchain and CLI tools grouped in a devShell.
Documented uses
- Reference Solana tooling from a Nix devShell.
- Use the flake's bundled BPF tools with the patched cargo-build-bpf utility.
Requirements & limits
- The documented platform is x86_64 Linux.
- The README reports twice the disk-space use in the Nix store because separately built components are copied into a combined package.
- The patched cargo-build-bpf installation function is designed to prevent automatic downloading of BPF tool replacements.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add Solana Flake to a Nix devShell
Reference Solana Flake in a development shell to use its bundled Solana tools.
Before you start
- A Nix flake-based development setup.
- An x86_64 Linux system.
Steps
Add the Solana Flake repository as an input in your flake.
Reference that input in your devShell.
Expected outcome
The devShell references the flake, which combines Solana CLI tools, BPF Rust and LLVM packages, and patched cargo-build-bpf.
Guide limitations
- The repository documents support only for x86_64 Linux.
- The separate components and combined package consume twice the disk space in the Nix store, according to the README.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 18 October 2026
- Original website title
- itsfarseen/solana-flake · Official homepage title · retained in its source language

