2024-09-24 03:34:12 -06:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
2024-04-09 00:45:15 -06:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "anchor";
|
2024-08-01 13:28:06 -06:00
|
|
|
version = "0.30.1";
|
2024-04-09 00:45:15 -06:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coral-xyz";
|
|
|
|
repo = "anchor";
|
|
|
|
rev = "v${version}";
|
2024-08-01 13:28:06 -06:00
|
|
|
hash = "sha256-NL8ySfvnCGKu1PTU4PJKTQt+Vsbcj+F1YYDzu0mSUoY=";
|
2024-04-09 00:45:15 -06:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2024-11-06 14:41:03 -07:00
|
|
|
cargoPatches = [ ./0001-update-time-rs.patch ];
|
2024-09-24 03:33:58 -06:00
|
|
|
|
2024-04-09 00:45:15 -06:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"serum_dex-0.4.0" = "sha256-Nzhh3OcAFE2LcbUgrA4zE2TnUMfV0dD4iH6fTi48GcI=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Solana Sealevel Framework";
|
|
|
|
homepage = "https://github.com/coral-xyz/anchor";
|
|
|
|
changelog = "https://github.com/coral-xyz/anchor/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
2024-10-15 09:43:51 -06:00
|
|
|
maintainers = [ ];
|
2024-04-09 00:45:15 -06:00
|
|
|
mainProgram = "anchor";
|
|
|
|
};
|
|
|
|
}
|