File tree Expand file tree Collapse file tree 5 files changed +31
-23
lines changed Expand file tree Collapse file tree 5 files changed +31
-23
lines changed Original file line number Diff line number Diff line change 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" ;
Original file line number Diff line number Diff line change 66 udev ,
77 protobuf ,
88 libcxx ,
9- rocksdb_8_11 ,
9+ rocksdb ,
1010 pkg-config ,
1111 makeWrapper ,
1212 solana-platform-tools ,
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 ;
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" ;
Original file line number Diff line number Diff line change 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} :
1718let
1819 systemMapping = {
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
Original file line number Diff line number Diff line change 11{ stdenv , fetchFromGitHub } :
22let
3- version = "2.2.3 " ;
4- sha256 = "sha256-nRCamrwzoPX0cAEcP6p0t0t9Q41RjM6okupOPkJH5lQ =" ;
3+ version = "2.3.7 " ;
4+ sha256 = "sha256-PZtnPBQbQwr5Ezogzv5ujALTaMcFAIZhPhaBQWt1jp8 =" ;
55in
66{
77 inherit version ;
You can’t perform that action at this time.
0 commit comments