mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #302585 from xrelkd/add/anchor
anchor: init at 0.29.0
This commit is contained in:
commit
4cdaf50584
5749
pkgs/by-name/an/anchor/Cargo.lock
generated
Normal file
5749
pkgs/by-name/an/anchor/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
48
pkgs/by-name/an/anchor/package.nix
Normal file
48
pkgs/by-name/an/anchor/package.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, stdenv
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "anchor";
|
||||
version = "0.29.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coral-xyz";
|
||||
repo = "anchor";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-hOpdCVO3fXMqnAihjXXD9SjqK4AMhQQhZmISqJnDVCI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"serum_dex-0.4.0" = "sha256-Nzhh3OcAFE2LcbUgrA4zE2TnUMfV0dD4iH6fTi48GcI=";
|
||||
};
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
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;
|
||||
maintainers = with maintainers; [ xrelkd ];
|
||||
mainProgram = "anchor";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user