Unverified Commit 0344acbd authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

anchor: 0.31.1 -> 1.0.0 (#506378)

parents fa9d96e5 8edb50ea
Loading
Loading
Loading
Loading
+16 −11
Original line number Diff line number Diff line
@@ -6,29 +6,34 @@

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "anchor";
  version = "0.31.1";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "coral-xyz";
    owner = "solana-foundation";
    repo = "anchor";
    tag = "v${finalAttrs.version}";
    hash = "sha256-pvD0v4y7DilqCrhT8iQnAj5kBxGQVqNvObJUBzFLqzA=";
    hash = "sha256-Y5452JSBAH+GkAJ57cDjup3vyMzPac+xvNAE+W81Ong=";
    fetchSubmodules = true;
  };

  cargoHash = "sha256-fjhLA+utQdgR75wg+/N4VwASW6+YBHglRPj14sPHmGA=";
  cargoHash = "sha256-GH/R7S8jQAWGTz8Ig/u/yb9o6FPtmkAaOzgl0uiB0dk=";

  checkFlags = [
    # the following test cases try to access network, skip them
    "--skip=tests::test_check_and_get_full_commit_when_full_commit"
    "--skip=tests::test_check_and_get_full_commit_when_partial_commit"
    "--skip=tests::test_get_anchor_version_from_commit"
  # Only build the anchor-cli package
  cargoBuildFlags = [
    "-p"
    "anchor-cli"
  ];

  # Only run tests for the anchor-cli
  cargoTestFlags = [
    "-p"
    "anchor-cli"
  ];

  meta = {
    description = "Solana Sealevel Framework";
    homepage = "https://github.com/coral-xyz/anchor";
    changelog = "https://github.com/coral-xyz/anchor/blob/${finalAttrs.src.rev}/CHANGELOG.md";
    homepage = "https://github.com/solana-foundation/anchor";
    changelog = "https://github.com/solana-foundation/anchor/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ Denommus ];
    mainProgram = "anchor";