python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / an / anchor / package.nix
blob1acd8246a1d8014b318aafec3204adb997e4e06b
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "anchor";
9   version = "0.30.1";
11   src = fetchFromGitHub {
12     owner = "coral-xyz";
13     repo = "anchor";
14     rev = "v${version}";
15     hash = "sha256-NL8ySfvnCGKu1PTU4PJKTQt+Vsbcj+F1YYDzu0mSUoY=";
16     fetchSubmodules = true;
17   };
19   cargoPatches = [ ./0001-update-time-rs.patch ];
21   cargoLock = {
22     lockFile = ./Cargo.lock;
23     outputHashes = {
24       "serum_dex-0.4.0" = "sha256-Nzhh3OcAFE2LcbUgrA4zE2TnUMfV0dD4iH6fTi48GcI=";
25     };
26   };
28   checkFlags = [
29     # the following test cases try to access network, skip them
30     "--skip=tests::test_check_and_get_full_commit_when_full_commit"
31     "--skip=tests::test_check_and_get_full_commit_when_partial_commit"
32     "--skip=tests::test_get_anchor_version_from_commit"
33   ];
35   meta = with lib; {
36     description = "Solana Sealevel Framework";
37     homepage = "https://github.com/coral-xyz/anchor";
38     changelog = "https://github.com/coral-xyz/anchor/blob/${src.rev}/CHANGELOG.md";
39     license = licenses.asl20;
40     maintainers = [ ];
41     mainProgram = "anchor";
42   };