rocksdb: enable support for lite mode

See: https://github.com/facebook/rocksdb/blob/master/ROCKSDB_LITE.md
This commit is contained in:
Charles Strahan 2017-07-24 21:45:33 -04:00
parent dc21851707
commit 29d2fe4a1f
No known key found for this signature in database
GPG Key ID: BB47AB4B8489B5A5
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,8 @@
# Malloc implementation
, jemalloc ? null, gperftools ? null
, enableLite ? false
}:
let
@ -35,6 +37,9 @@ stdenv.mkDerivation rec {
CMAKE_CXX_FLAGS = "-std=gnu++11";
JEMALLOC_LIB = stdenv.lib.optionalString (malloc == jemalloc) "-ljemalloc";
${if enableLite then "LIBNAME" else null} = "librocksdb_lite";
${if enableLite then "CXXFLAGS" else null} = "-DROCKSDB_LITE=1";
buildFlags = [
"DEBUG_LEVEL=0"
"shared_lib"

View File

@ -9969,6 +9969,8 @@ with pkgs;
rocksdb = callPackage ../development/libraries/rocksdb { };
rocksdb_lite = rocksdb.override { enableLite = true; };
rote = callPackage ../development/libraries/rote { };
ronn = callPackage ../development/tools/ronn { };