Skip to content
Snippets Groups Projects
Unverified Commit 2b63e46f authored by Charles Hall's avatar Charles Hall
Browse files

use system rocksdb

This mostly just improves build times.
parent a0c449e5
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
sha256 = "sha256-8len3i8oTwJSOJZMosGGXHBL5BVuGQnWOT2St5YAUFU="; sha256 = "sha256-8len3i8oTwJSOJZMosGGXHBL5BVuGQnWOT2St5YAUFU=";
}; };
# Point to system RocksDB
ROCKSDB_INCLUDE_DIR = "${pkgs.rocksdb_6_23}/include";
ROCKSDB_LIB_DIR = "${pkgs.rocksdb_6_23}/lib";
builder = (pkgs.callPackage naersk { builder = (pkgs.callPackage naersk {
inherit (toolchain) rustc cargo; inherit (toolchain) rustc cargo;
}).buildPackage; }).buildPackage;
...@@ -44,6 +48,9 @@ ...@@ -44,6 +48,9 @@
packages.default = builder { packages.default = builder {
src = ./.; src = ./.;
# Use system RocksDB
inherit ROCKSDB_INCLUDE_DIR ROCKSDB_LIB_DIR;
nativeBuildInputs = (with pkgs.rustPlatform; [ nativeBuildInputs = (with pkgs.rustPlatform; [
bindgenHook bindgenHook
]); ]);
...@@ -54,6 +61,9 @@ ...@@ -54,6 +61,9 @@
# sources, and it can read this environment variable to do so # sources, and it can read this environment variable to do so
RUST_SRC_PATH = "${toolchain.rust-src}/lib/rustlib/src/rust/library"; RUST_SRC_PATH = "${toolchain.rust-src}/lib/rustlib/src/rust/library";
# Use system RocksDB
inherit ROCKSDB_INCLUDE_DIR ROCKSDB_LIB_DIR;
# Development tools # Development tools
nativeBuildInputs = (with pkgs.rustPlatform; [ nativeBuildInputs = (with pkgs.rustPlatform; [
bindgenHook bindgenHook
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment