mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
move rocksdb to its own file
This commit is contained in:
parent
2e6bf86a42
commit
9f4a1578aa
3 changed files with 18 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -37,9 +37,7 @@ let
|
|||
buildDepsOnlyEnv =
|
||||
let
|
||||
rocksdb' = rocksdb.override {
|
||||
jemalloc = rust-jemalloc-sys;
|
||||
enableJemalloc = featureEnabled "jemalloc";
|
||||
enableLiburing = false;
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
|
|||
14
nix/pkgs/rocksdb/default.nix
Normal file
14
nix/pkgs/rocksdb/default.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue