Skip to content

Commit 1f162a3

Browse files
authored
Merge pull request #7 from joncinque/v2.3
Update to Solana v2.3
2 parents 65a7cc4 + 4c52c82 commit 1f162a3

File tree

5 files changed

+31
-23
lines changed

5 files changed

+31
-23
lines changed

flake.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
description = "Solana development setup with Nix.";
33
inputs = {
4-
nixpkgs.url = "github:nixos/nixpkgs/8b27c1239e5c421a2bbc2c65d52e4a6fbf2ff296";
4+
nixpkgs.url = "github:nixos/nixpkgs/11cb3517b3af6af300dd6c055aeda73c9bf52c48";
55
flake-parts.url = "github:hercules-ci/flake-parts/f4330d22f1c5d2ba72d3d22df5597d123fdb60a9";
66
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
77
rust-overlay = {
8-
url = "github:oxalica/rust-overlay/bd32e88bef6da0e021a42fb4120a8df2150e9b8c";
8+
url = "github:oxalica/rust-overlay/f46d294b87ebb9f7124f1ce13aa2a5f5acc0f3eb";
99
inputs.nixpkgs.follows = "nixpkgs";
1010
};
1111
crane.url = "github:ipetkov/crane";

solana-cli.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
udev,
77
protobuf,
88
libcxx,
9-
rocksdb_8_11,
9+
rocksdb,
1010
pkg-config,
1111
makeWrapper,
1212
solana-platform-tools,
@@ -44,8 +44,8 @@ let
4444
version = solana-source.version;
4545
src = solana-source.src;
4646

47-
# Use Rust 1.84.1 as required by Agave
48-
rust = rust-bin.stable."1.84.1".default;
47+
# Use Rust 1.86.0 as required by Agave
48+
rust = rust-bin.stable."1.86.0".default;
4949
rustPlatform = makeRustPlatform {
5050
cargo = rust;
5151
rustc = rust;
@@ -98,8 +98,8 @@ let
9898
NIX_OUTPATH_USED_AS_RANDOM_SEED = "aaaaaaaaaa";
9999

100100
# Used by build.rs in the rocksdb-sys crate
101-
ROCKSDB_LIB_DIR = "${rocksdb_8_11}/lib";
102-
ROCKSDB_INCLUDE_DIR = "${rocksdb_8_11}/include";
101+
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
102+
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
103103

104104
# For darwin systems
105105
CPPFLAGS = lib.optionals stdenv.isDarwin "-isystem ${lib.getDev libcxx}/include/c++/v1";

solana-platform-tools.nix

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
lib,
77
libclang,
88
libedit,
9+
openssl,
910
python310,
1011
solana-source,
1112
udev,
1213
xz,
1314
zlib,
1415
system ? builtins.currentSystem,
15-
version ? "1.45",
16+
version ? "1.48",
1617
}:
1718
let
1819
systemMapping = {
@@ -24,6 +25,13 @@ let
2425
};
2526

2627
versionMapping = {
28+
"1.48" = {
29+
x86_64-linux = "sha256-vHeOPs7B7WptUJ/mVvyt7ue+MqfqAsbwAHM+xlN/tgQ=";
30+
aarch64-linux = "sha256-i3I9pwa+DyMJINFr+IucwytzEHdiRZU6r7xWHzppuR4=";
31+
x86_64-darwin = "sha256-bXV4S8JeM4RJ7D9u+ruwtNFJ9aq01cFw80sprxB+Xng=";
32+
aarch64-darwin = "sha256-ViXRoGlfn0aduNaZgsiXTcSIZO560DmFF5+kh3kYNIA=";
33+
x86_64-windows = "sha256-hEVs9TPLX2YY2SBwt8qE8b700yznC71NHszz/zXdpZQ=";
34+
};
2735
"1.45" = {
2836
x86_64-linux = "sha256-QGm7mOd3UnssYhPt8RSSRiS5LiddkXuDtWuakpak0Y0=";
2937
aarch64-linux = "sha256-UzOekFBdjtHJzzytmkQETd6Mrb+cdAsbZBA0kzc75Ws=";
@@ -68,7 +76,7 @@ stdenv.mkDerivation rec {
6876
libclang.lib
6977
xz
7078
python310
71-
] ++ lib.optionals stdenv.isLinux [ udev ];
79+
] ++ lib.optionals stdenv.isLinux [ openssl udev ];
7280

7381
installPhase = ''
7482
platformtools=$out/bin/platform-tools-sdk/sbf/dependencies/platform-tools
@@ -91,7 +99,7 @@ stdenv.mkDerivation rec {
9199

92100
# A bit ugly, but liblldb.so uses libedit.so.2 and nix provides libedit.so
93101
postFixup = lib.optionals stdenv.isLinux ''
94-
patchelf --replace-needed libedit.so.2 libedit.so $out/bin/platform-tools-sdk/sbf/dependencies/platform-tools/llvm/lib/liblldb.so.18.1.7-rust-dev
102+
patchelf --replace-needed libedit.so.2 libedit.so $out/bin/platform-tools-sdk/sbf/dependencies/platform-tools/llvm/lib/liblldb.so.19.1.7-rust-dev
95103
'';
96104

97105
# We need to preserve metadata in .rlib, which might get stripped on macOS. See https://github.com/NixOS/nixpkgs/issues/218712

solana-source.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ stdenv, fetchFromGitHub }:
22
let
3-
version = "2.2.3";
4-
sha256 = "sha256-nRCamrwzoPX0cAEcP6p0t0t9Q41RjM6okupOPkJH5lQ=";
3+
version = "2.3.7";
4+
sha256 = "sha256-PZtnPBQbQwr5Ezogzv5ujALTaMcFAIZhPhaBQWt1jp8=";
55
in
66
{
77
inherit version;

0 commit comments

Comments
 (0)