mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
anchor: 1.0.2 -> 1.1.2 (#537633)
This commit is contained in:
commit
8c57830ed9
1 changed files with 14 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue