summary refs log tree commit diff
path: root/pkgs/development/libraries/rocksdb
diff options
context:
space:
mode:
authorAdrien Devresse <adrien.devresse@epfl.ch>2018-02-06 14:40:09 +0100
committerDomen Kožar <domen@enlambda.com>2018-02-07 21:17:02 +0100
commit4442a377cb54ca6df3172fa0e7ac1268c30e0a69 (patch)
tree6406916689b4622cfa36efcfc479453b8b39147e /pkgs/development/libraries/rocksdb
parentd74a7506f0a1a698f5a66c2878586a08c333caee (diff)
downloadnixpkgs-4442a377cb54ca6df3172fa0e7ac1268c30e0a69.tar
nixpkgs-4442a377cb54ca6df3172fa0e7ac1268c30e0a69.tar.gz
nixpkgs-4442a377cb54ca6df3172fa0e7ac1268c30e0a69.tar.bz2
nixpkgs-4442a377cb54ca6df3172fa0e7ac1268c30e0a69.tar.lz
nixpkgs-4442a377cb54ca6df3172fa0e7ac1268c30e0a69.tar.xz
nixpkgs-4442a377cb54ca6df3172fa0e7ac1268c30e0a69.tar.zst
nixpkgs-4442a377cb54ca6df3172fa0e7ac1268c30e0a69.zip
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
Diffstat (limited to 'pkgs/development/libraries/rocksdb')
-rw-r--r--pkgs/development/libraries/rocksdb/default.nix26
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/development/libraries/rocksdb/default.nix b/pkgs/development/libraries/rocksdb/default.nix
index a791c899485..b37a9bc04c3 100644
--- a/pkgs/development/libraries/rocksdb/default.nix
+++ b/pkgs/development/libraries/rocksdb/default.nix
@@ -1,4 +1,7 @@
-{ stdenv, fetchFromGitHub, fixDarwinDylibNames
+{ stdenv
+, fetchFromGitHub
+, fixDarwinDylibNames
+, which, perl
 
 # Optional Arguments
 , snappy ? null, google-gflags ? null, zlib ? null, bzip2 ? null, lz4 ? null
@@ -15,15 +18,16 @@ let
 in
 stdenv.mkDerivation rec {
   name = "rocksdb-${version}";
-  version = "5.1.2";
+  version = "5.10.2";
 
   src = fetchFromGitHub {
     owner = "facebook";
     repo = "rocksdb";
     rev = "v${version}";
-    sha256 = "1smahz67gcd86nkdqaml78lci89dza131mlj5472r4sxjdxsx277";
+    sha256 = "00qnd56v4qyzxg0b3ya3flf2jhbbfaibj1y53bd5ciaw3af6zxnd";
   };
-
+  
+  nativeBuildInputs = [ which perl ];
   buildInputs = [ snappy google-gflags zlib bzip2 lz4 malloc fixDarwinDylibNames ];
 
   postPatch = ''
@@ -39,16 +43,20 @@ stdenv.mkDerivation rec {
 
   ${if enableLite then "LIBNAME" else null} = "librocksdb_lite";
   ${if enableLite then "CXXFLAGS" else null} = "-DROCKSDB_LITE=1";
-
-  buildFlags = [
+  
+  buildAndInstallFlags = [
+    "USE_RTTI=1"
     "DEBUG_LEVEL=0"
+    "DISABLE_WARNING_AS_ERROR=1"     
+  ];
+
+  buildFlags = buildAndInstallFlags ++ [
     "shared_lib"
     "static_lib"
   ];
 
-  installFlags = [
+  installFlags = buildAndInstallFlags ++ [
     "INSTALL_PATH=\${out}"
-    "DEBUG_LEVEL=0"
     "install-shared"
     "install-static"
   ];
@@ -66,6 +74,6 @@ stdenv.mkDerivation rec {
     description = "A library that provides an embeddable, persistent key-value store for fast storage";
     license = licenses.bsd3;
     platforms = platforms.allBut [ "i686-linux" ];
-    maintainers = with maintainers; [ wkennington ];
+    maintainers = with maintainers; [ adev wkennington ];
   };
 }