move rocksdb to its own file

This commit is contained in:
Charles Hall 2024-10-24 14:54:39 -07:00
parent 2e6bf86a42
commit 9f4a1578aa
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 18 additions and 2 deletions

View file

@ -32,6 +32,10 @@
default = prev.default.override args;
});
rocksdb = self.callPackage ./nix/pkgs/rocksdb {
inherit (pkgs) rocksdb;
};
rust-jemalloc-sys = self.callPackage ./nix/pkgs/rust-jemalloc-sys {
inherit (pkgs) rust-jemalloc-sys;
};

View file

@ -37,9 +37,7 @@ let
buildDepsOnlyEnv =
let
rocksdb' = rocksdb.override {
jemalloc = rust-jemalloc-sys;
enableJemalloc = featureEnabled "jemalloc";
enableLiburing = false;
};
in
{

View file

@ -0,0 +1,14 @@
# Dependencies (keep sorted)
{ rocksdb
, rust-jemalloc-sys
# Options (keep sorted)
, enableJemalloc ? false
}:
rocksdb.override {
jemalloc = rust-jemalloc-sys;
enableLiburing = false;
inherit enableJemalloc;
}