Skip to content

Commit

Permalink
use exact version of rocksdb
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Jun 12, 2024
1 parent cefe7c0 commit c8635a8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 27 deletions.
42 changes: 17 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bitcoin_slices = { version = "0.6.2", features = ["bitcoin", "slice_cache"] }
clap = { version = "4.2.7", features = ["derive", "env"] }
url = "2.3.1"
fxhash = "0.2.1"
rocksdb = "0.21.0"
rocksdb = "0.22.0"
lru = "0.12.0"

[dev-dependencies]
Expand Down
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
flake-utils.lib.eachDefaultSystem
(system:
let
overlays = [ (import rust-overlay) ];
overlays = [
(import rust-overlay)
(import ./rocksdb-overlay.nix)
];
pkgs = import nixpkgs {
inherit system overlays;
};
Expand Down
13 changes: 13 additions & 0 deletions rocksdb-overlay.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
final: prev: {

rocksdb = prev.rocksdb.overrideAttrs (oldAttrs: rec {
version = "8.10.0";

src = final.fetchFromGitHub {
owner = "facebook";
repo = oldAttrs.pname;
rev = "v${version}";
hash = "sha256-KGsYDBc1fz/90YYNGwlZ0LUKXYsP1zyhP29TnRQwgjQ=";
};
});
}

0 comments on commit c8635a8

Please sign in to comment.