forked from mirrors/nixpkgs
solana-cli: 1.14.23 → 1.16.27
This commit is contained in:
parent
e66eb7f9d7
commit
b3189792a6
8919
pkgs/applications/blockchains/solana/Cargo.lock
generated
Normal file
8919
pkgs/applications/blockchains/solana/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
12
pkgs/applications/blockchains/solana/account-info.patch
Normal file
12
pkgs/applications/blockchains/solana/account-info.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/sdk/program/src/account_info.rs b/sdk/program/src/account_info.rs
|
||||
index 372370d0e15a0f2877b02ad29586e5b352438b24..3db3e9839b6535786e60be5602c03d0c909bf937 100644
|
||||
--- a/sdk/program/src/account_info.rs
|
||||
+++ b/sdk/program/src/account_info.rs
|
||||
@@ -182,6 +182,7 @@ impl<'a> AccountInfo<'a> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
+ #[rustversion::attr(since(1.72), allow(invalid_reference_casting))]
|
||||
pub fn assign(&self, new_owner: &Pubkey) {
|
||||
// Set the non-mut owner field
|
||||
unsafe {
|
|
@ -18,22 +18,10 @@
|
|||
"solana-gossip"
|
||||
"solana-install"
|
||||
"solana-keygen"
|
||||
"solana-ledger-tool"
|
||||
"solana-log-analyzer"
|
||||
"solana-net-shaper"
|
||||
"solana-sys-tuner"
|
||||
"rbpf-cli"
|
||||
"solana-validator"
|
||||
"solana-ledger-tool"
|
||||
"cargo-build-bpf"
|
||||
"cargo-test-bpf"
|
||||
"solana-dos"
|
||||
"solana-install-init"
|
||||
"solana-stake-accounts"
|
||||
"solana-test-validator"
|
||||
"solana-tokens"
|
||||
"solana-watchtower"
|
||||
"cargo-test-sbf"
|
||||
"cargo-build-sbf"
|
||||
] ++ [
|
||||
# XXX: Ensure `solana-genesis` is built LAST!
|
||||
# See https://github.com/solana-labs/solana/issues/5826
|
||||
|
@ -41,16 +29,15 @@
|
|||
]
|
||||
}:
|
||||
let
|
||||
version = "1.14.23";
|
||||
sha256 = "sha256-NUkkLzLNh8P7PFh/SVtd9JM18w3egDaaK80urGw1SSs=";
|
||||
cargoSha256 = "sha256-7t8Quh6T2MzJWEM5Y50CgCyFfx2ZJRAdCpZyyYvJrt4=";
|
||||
version = "1.16.27";
|
||||
sha256 = "sha256-xd0FCSlpPJDVWOlt9rIlnSbjksmvlXJWHkvlZONd2dM=";
|
||||
|
||||
inherit (darwin.apple_sdk_11_0) Libsystem;
|
||||
inherit (darwin.apple_sdk_11_0.frameworks) System IOKit AppKit Security;
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "solana-cli";
|
||||
inherit version cargoSha256;
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "solana-labs";
|
||||
|
@ -59,6 +46,21 @@ rustPlatform.buildRustPackage rec {
|
|||
inherit sha256;
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
||||
outputHashes = {
|
||||
"crossbeam-epoch-0.9.5" = "sha256-Jf0RarsgJiXiZ+ddy0vp4jQ59J9m0k3sgXhWhCdhgws=";
|
||||
"ntapi-0.3.7" = "sha256-G6ZCsa3GWiI/FeGKiK9TWkmTxen7nwpXvm5FtjNtjWU=";
|
||||
};
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix: https://github.com/solana-labs/solana/issues/34203
|
||||
# From https://github.com/Homebrew/homebrew-core/pull/156930/files#diff-f27c55b86df31cd4935c956efee1be743eae0958e3850f3f9891d51bfea50b1cR76
|
||||
./account-info.patch
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
cargoBuildFlags = builtins.map (n: "--bin=${n}") solanaPkgs;
|
||||
|
||||
|
@ -101,7 +103,7 @@ rustPlatform.buildRustPackage rec {
|
|||
description = "Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces. ";
|
||||
homepage = "https://solana.com";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ netfox happysalada ];
|
||||
maintainers = with maintainers; [ netfox happysalada aikooo7 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue