File tree Expand file tree Collapse file tree 5 files changed +29
-22
lines changed Expand file tree Collapse file tree 5 files changed +29
-22
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 1212 xz ,
1313 zlib ,
1414 system ? builtins . currentSystem ,
15- version ? "1.45 " ,
15+ version ? "1.48 " ,
1616} :
1717let
1818 systemMapping = {
2424 } ;
2525
2626 versionMapping = {
27+ "1.48" = {
28+ x86_64-linux = "sha256-vHeOPs7B7WptUJ/mVvyt7ue+MqfqAsbwAHM+xlN/tgQ=" ;
29+ aarch64-linux = "sha256-i3I9pwa+DyMJINFr+IucwytzEHdiRZU6r7xWHzppuR4=" ;
30+ x86_64-darwin = "sha256-bXV4S8JeM4RJ7D9u+ruwtNFJ9aq01cFw80sprxB+Xng=" ;
31+ aarch64-darwin = "sha256-ViXRoGlfn0aduNaZgsiXTcSIZO560DmFF5+kh3kYNIA=" ;
32+ x86_64-windows = "sha256-hEVs9TPLX2YY2SBwt8qE8b700yznC71NHszz/zXdpZQ=" ;
33+ } ;
2734 "1.45" = {
2835 x86_64-linux = "sha256-QGm7mOd3UnssYhPt8RSSRiS5LiddkXuDtWuakpak0Y0=" ;
2936 aarch64-linux = "sha256-UzOekFBdjtHJzzytmkQETd6Mrb+cdAsbZBA0kzc75Ws=" ;
@@ -91,7 +98,7 @@ stdenv.mkDerivation rec {
9198
9299 # A bit ugly, but liblldb.so uses libedit.so.2 and nix provides libedit.so
93100 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
101+ 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
95102 '' ;
96103
97104 # 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