Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

cideM/solana-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Flake For Solana

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:

  • cargo-build-bpf
  • cargo-test-bpf
  • solana
  • solana-install
  • solana-install-init
  • solana-keygen
  • solana-faucet
  • solana-stake-accounts
  • solana-tokens

I tested the build on NixOS and an M1 Darwin machine.

Quickstart

$ 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'

Other Useful Links

Please also see the SaberHQ overlay, which contains a few more outputs.

TODO

  • Add a test that runs all binaries once, at least just --version
  • Try auto updating to latest stable release with GitHub workflow
  • Figure out how to build the missing binary on Darwin (Discourse post)

About

The Solana CLI tools packaged up with Nix

Topics

Resources

License

Stars

Watchers

Forks

Languages