Overlay containing Nix packages used within the Saber ecosystem.
The following helper exports several packages:
env-anchor-idls
- environment which allows the use of theanchor idl
commandenv-anchor-build
- exposes tools to create verifiable Anchor buildsrust
- exposes Cargo/Rustc as used in CI
To use these in GitHub Actions, you may reference the Saber Periphery GitHub actions and pick one of the below flake formats:
{
description = "My development environment.";
inputs = {
saber-overlay.url = "github:saber-hq/saber-overlay";
};
outputs = { self, saber-overlay }: saber-overlay.lib.defaultFlakeOutputs;
}
{
description = "My development environment.";
inputs = {
saber-overlay.url = "github:saber-hq/saber-overlay";
};
outputs = { self, saber-overlay }: saber-overlay.lib.buildFlakeOutputs {
setupBuildTools = { pkgs }: {
solana = pkgs.solana-1_9;
anchor = pkgs.anchor-0_23_0;
};
};
}
let
saberOverlay = fetchFromGitHub {
owner = "saber-hq";
repo = "saber-overlay";
rev = "master";
sha256 = "...";
};
nixpkgs = import <nixpkgs> { overlays = [ (import saberOverlay) ]; };
in
with nixpkgs;
# ...
- Make program compilation work on NixOS