anchor: 1.0.2 -> 1.1.2 (#537633)

This commit is contained in:
kirillrdy 2026-07-03 06:32:49 +00:00 committed by GitHub
commit 8c57830ed9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,22 +1,23 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "anchor";
version = "1.0.2";
version = "1.1.2";
src = fetchFromGitHub {
owner = "otter-sec";
repo = "anchor";
tag = "v${finalAttrs.version}";
hash = "sha256-J8q+oNT6x36LlTO/szlkxIcT5oFJ3y8b3YyqwBjDYX8=";
hash = "sha256-/aDNw+Up48NZZIjEKXj4M2UIbcCt766Tv0eOlFau2gQ=";
fetchSubmodules = true;
};
cargoHash = "sha256-c+xhJas+SnnUshhpLx+C/4SH0uow/QG/1NlAbz9ePDc=";
cargoHash = "sha256-oEgWfklxjP8+TxrhDKJgcTsanpqJpEiHXJyir8neYj8=";
# Only build the anchor-cli package
cargoBuildFlags = [
@ -30,6 +31,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
"anchor-cli"
];
# These tests use tempdir + cargo metadata subprocess which fails on Darwin
# sandboxes due to getcwd() differences (XNU vs Linux). Tracked upstream at
# https://github.com/otter-sec/anchor/issues/4751
checkFlags = map (t: "--skip=${t}") (
lib.optionals stdenv.hostPlatform.isDarwin [
"program::tests::discover_solana_programs_finds_sibling_programs_from_nested_member"
"program::tests::discover_solana_programs_lists_all_members_from_nested_member"
]
);
meta = {
description = "Solana Sealevel Framework";
homepage = "https://github.com/otter-sec/anchor";