Skip to content

Commit 3072cb7

Browse files
committed
package anchor v0.31.0
1 parent 1c45b8a commit 3072cb7

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

anchor.nix

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

flake.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
inputs@{ flake-parts, nixpkgs, ... }:
1111
let
1212
packagesFor = pkgs: rec {
13-
solc-0_8_26 = pkgs.callPackage ./solc-0.8.26.nix { };
14-
lsh = pkgs.callPackage ./lsh.nix { };
15-
spl-token = pkgs.callPackage ./spl-token.nix { };
16-
agave-platform-tools = pkgs.callPackage ./agave-platform-tools.nix { };
17-
agave-cli = pkgs.callPackage ./agave-cli.nix {
18-
inherit agave-platform-tools;
19-
};
20-
shank = pkgs.callPackage ./shank.nix { };
13+
# solc-0_8_26 = pkgs.callPackage ./solc-0.8.26.nix { };
14+
# lsh = pkgs.callPackage ./lsh.nix { };
15+
# spl-token = pkgs.callPackage ./spl-token.nix { };
16+
# agave-platform-tools = pkgs.callPackage ./agave-platform-tools.nix { };
17+
# agave-cli = pkgs.callPackage ./agave-cli.nix { inherit agave-platform-tools; };
18+
# shank = pkgs.callPackage ./shank.nix { };
19+
anchor = pkgs.callPackage ./anchor.nix { };
2120
};
2221
in
2322
flake-parts.lib.mkFlake { inherit inputs; } {
@@ -55,6 +54,7 @@
5554
solana-test-validator --version
5655
spl-token --version
5756
shank --version
57+
anchor --version
5858
mkdir $out
5959
'';
6060
};

0 commit comments

Comments
 (0)