Skip to content

Commit 4442a37

Browse files
adevressdomenkozar
authored andcommittedFeb 7, 2018
rocksdb: 5.1.2 -> 5.10.2
- Update rocksdb to last version - Also enable RTTI support for rocksdb, required for Ceph - Add missing which and perl package
1 parent d74a750 commit 4442a37

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed
 

‎pkgs/development/libraries/rocksdb/default.nix

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
{ stdenv, fetchFromGitHub, fixDarwinDylibNames
1+
{ stdenv
2+
, fetchFromGitHub
3+
, fixDarwinDylibNames
4+
, which, perl
25

36
# Optional Arguments
47
, snappy ? null, google-gflags ? null, zlib ? null, bzip2 ? null, lz4 ? null
@@ -15,15 +18,16 @@ let
1518
in
1619
stdenv.mkDerivation rec {
1720
name = "rocksdb-${version}";
18-
version = "5.1.2";
21+
version = "5.10.2";
1922

2023
src = fetchFromGitHub {
2124
owner = "facebook";
2225
repo = "rocksdb";
2326
rev = "v${version}";
24-
sha256 = "1smahz67gcd86nkdqaml78lci89dza131mlj5472r4sxjdxsx277";
27+
sha256 = "00qnd56v4qyzxg0b3ya3flf2jhbbfaibj1y53bd5ciaw3af6zxnd";
2528
};
26-
29+
30+
nativeBuildInputs = [ which perl ];
2731
buildInputs = [ snappy google-gflags zlib bzip2 lz4 malloc fixDarwinDylibNames ];
2832

2933
postPatch = ''
@@ -39,16 +43,20 @@ stdenv.mkDerivation rec {
3943

4044
${if enableLite then "LIBNAME" else null} = "librocksdb_lite";
4145
${if enableLite then "CXXFLAGS" else null} = "-DROCKSDB_LITE=1";
42-
43-
buildFlags = [
46+
47+
buildAndInstallFlags = [
48+
"USE_RTTI=1"
4449
"DEBUG_LEVEL=0"
50+
"DISABLE_WARNING_AS_ERROR=1"
51+
];
52+
53+
buildFlags = buildAndInstallFlags ++ [
4554
"shared_lib"
4655
"static_lib"
4756
];
4857

49-
installFlags = [
58+
installFlags = buildAndInstallFlags ++ [
5059
"INSTALL_PATH=\${out}"
51-
"DEBUG_LEVEL=0"
5260
"install-shared"
5361
"install-static"
5462
];
@@ -66,6 +74,6 @@ stdenv.mkDerivation rec {
6674
description = "A library that provides an embeddable, persistent key-value store for fast storage";
6775
license = licenses.bsd3;
6876
platforms = platforms.allBut [ "i686-linux" ];
69-
maintainers = with maintainers; [ wkennington ];
77+
maintainers = with maintainers; [ adev wkennington ];
7078
};
7179
}

0 commit comments

Comments
 (0)
Please sign in to comment.