upgrade to latest rust-rocksdb

We gotta overrideAttrs to set the src and version to a newer version
than nixpkgs has now.
This commit is contained in:
Charles Hall 2024-10-24 15:57:02 -07:00
parent d565b22da9
commit 2dbb101140
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
5 changed files with 34 additions and 7 deletions

View file

@ -1,5 +1,6 @@
# Dependencies (keep sorted)
{ lib
{ inputs
, lib
, rocksdb
, rust-jemalloc-sys
@ -8,7 +9,14 @@
}:
let
rocksdb' = rocksdb.override {
rocksdb' = (rocksdb.overrideAttrs (old: {
src = inputs.rocksdb;
version = lib.removePrefix
"v"
(builtins.fromJSON
(builtins.readFile ../../../flake.lock)
).nodes.rocksdb.original.ref;
})).override {
jemalloc = rust-jemalloc-sys;
enableLiburing = false;