From 5f6aeca1d73ce7a6a0e903ac79f7e9cb738987e6 Mon Sep 17 00:00:00 2001 From: 0xgsvs <0xgsvs@gmail.com> Date: Thu, 2 Jul 2026 06:49:45 +0530 Subject: [PATCH] anchor: 1.0.2 -> 1.1.2 changelog: https://github.com/otter-sec/anchor/blob/v1.1.2/CHANGELOG.md --- pkgs/by-name/an/anchor/package.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/an/anchor/package.nix b/pkgs/by-name/an/anchor/package.nix index 97232abf87d6..76b35e307594 100644 --- a/pkgs/by-name/an/anchor/package.nix +++ b/pkgs/by-name/an/anchor/package.nix @@ -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";