You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Replace solana with the package you want to use:
nix shell github:metacraft-labs/nix-blockchain-development#solana
Declarative with Nix Flakes dev shell
flake.nix:
{# <after>:# Opt into `nix-blockchain-development`'s substituter (binary cache).# `nixConfig` settings are not transitive so every user of a flake with a# custom binary cache must manually include its `nixConfig` settings for# substituters and trusted public keys:nixConfig={extra-substituters="https://nix-blockchain-development.cachix.org";extra-trusted-public-keys="nix-blockchain-development.cachix.org-1:Ekei3RuW3Se+P/UIo6Q/oAgor/fVhFuuuX5jR8K/cdg=";};inputs={# <before>:# nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";# flake-utils.url = github:numtide/flake-utils;# <after>:# To ensure all packages from mcl-blockchain will be fetched from its# binary cache we need to ensure that we use exact same commit hash of the# inputs below. If we didn't, we may either:# * end up with multiple copies of the same package from nixpkgs# * be unable to use the binary cache, since the packages there where# using different versions of their dependencies from nixpkgsmcl-blockchain.url="github:metacraft-labs/nix-blockchain-development";nixpkgs.follows="mcl-blockchain/nixpkgs";flake-utils.follows="mcl-blockchain/flake-utils";};outputs={self,nixpkgs,flake-utils,mcl-blockchain,# <after>}:
flake-utils.lib.simpleFlake{inheritselfnixpkgs;name="solana-hello-world";shell=./shell.nix;preOverlays=[mcl-blockchain.overlays.default];# <after>};}