File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ rustPlatform ,
4+ fetchFromGitHub ,
5+ } :
6+ rustPlatform . buildRustPackage rec {
7+ pname = "anchor" ;
8+ version = "0.31.0" ;
9+
10+ src = fetchFromGitHub {
11+ owner = "solana-foundation" ;
12+ repo = "anchor" ;
13+ rev = "v${ version } " ;
14+ hash = "sha256-rwf2PWHoUl8Rkmktb2u7veRrIcLT3syi7M2OZxdxjG4=" ;
15+ fetchSubmodules = true ;
16+ } ;
17+
18+ cargoHash = "sha256-wznmP3vXKY2jR4Ju+mjz6mMvicJoEKUYdAHVn5EI1c4=" ;
19+ }
Original file line number Diff line number Diff line change 1414 lsh = pkgs . callPackage ./lsh.nix { } ;
1515 spl-token = pkgs . callPackage ./spl-token.nix { } ;
1616 agave-platform-tools = pkgs . callPackage ./agave-platform-tools.nix { } ;
17- agave-cli = pkgs . callPackage ./agave-cli.nix {
18- inherit agave-platform-tools ;
19- } ;
17+ agave-cli = pkgs . callPackage ./agave-cli.nix { inherit agave-platform-tools ; } ;
2018 shank = pkgs . callPackage ./shank.nix { } ;
19+ anchor = pkgs . callPackage ./anchor.nix { } ;
2120 } ;
2221 in
2322 flake-parts . lib . mkFlake { inherit inputs ; } {
5554 solana-test-validator --version
5655 spl-token --version
5756 shank --version
57+ anchor --version
5858 mkdir $out
5959 '' ;
6060 } ;
You can’t perform that action at this time.
0 commit comments