This flake is an experiment that I started out of curiosity. I don't use Solana myself. If there are better flakes out there please let me know so I can deprecate this repository and link to other solutions!
This flake packages up the solana-cli. More specifically, it includes the following binaries:
I tested the build on NixOS and an M1 Darwin machine.
$ nix flake show github:cideM/solana-nix
warning: Git tree '/Users/fbs/private/solana-nix' is dirty
git+file:///Users/fbs/private/solana-nix
├───apps
│ ├───aarch64-darwin
│ │ └───solana: app
│ ├───x86_64-darwin
│ │ └───solana: app
│ └───x86_64-linux
│ └───solana: app
├───defaultApp
│ ├───aarch64-darwin: app
│ ├───x86_64-darwin: app
│ └───x86_64-linux: app
├───defaultPackage
│ ├───aarch64-darwin: package 'solana-1.7.15'
│ ├───x86_64-darwin: package 'solana-1.7.15'
│ └───x86_64-linux: package 'solana-1.7.15'
└───packages
├───aarch64-darwin
│ └───solana: package 'solana-1.7.15'
├───x86_64-darwin
│ └───solana: package 'solana-1.7.15'
└───x86_64-linux
└───solana: package 'solana-1.7.15'
Please also see the SaberHQ overlay, which contains a few more outputs.
--version