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

authored by Adrien Devresse and committed by Domen Kožar 4442a377 d74a7506

+17 -9
+17 -9
pkgs/development/libraries/rocksdb/default.nix
··· 1 - { stdenv, fetchFromGitHub, fixDarwinDylibNames 1 + { stdenv 2 + , fetchFromGitHub 3 + , fixDarwinDylibNames 4 + , which, perl 2 5 3 6 # Optional Arguments 4 7 , snappy ? null, google-gflags ? null, zlib ? null, bzip2 ? null, lz4 ? null ··· 15 18 in 16 19 stdenv.mkDerivation rec { 17 20 name = "rocksdb-${version}"; 18 - version = "5.1.2"; 21 + version = "5.10.2"; 19 22 20 23 src = fetchFromGitHub { 21 24 owner = "facebook"; 22 25 repo = "rocksdb"; 23 26 rev = "v${version}"; 24 - sha256 = "1smahz67gcd86nkdqaml78lci89dza131mlj5472r4sxjdxsx277"; 27 + sha256 = "00qnd56v4qyzxg0b3ya3flf2jhbbfaibj1y53bd5ciaw3af6zxnd"; 25 28 }; 26 - 29 + 30 + nativeBuildInputs = [ which perl ]; 27 31 buildInputs = [ snappy google-gflags zlib bzip2 lz4 malloc fixDarwinDylibNames ]; 28 32 29 33 postPatch = '' ··· 39 43 40 44 ${if enableLite then "LIBNAME" else null} = "librocksdb_lite"; 41 45 ${if enableLite then "CXXFLAGS" else null} = "-DROCKSDB_LITE=1"; 42 - 43 - buildFlags = [ 46 + 47 + buildAndInstallFlags = [ 48 + "USE_RTTI=1" 44 49 "DEBUG_LEVEL=0" 50 + "DISABLE_WARNING_AS_ERROR=1" 51 + ]; 52 + 53 + buildFlags = buildAndInstallFlags ++ [ 45 54 "shared_lib" 46 55 "static_lib" 47 56 ]; 48 57 49 - installFlags = [ 58 + installFlags = buildAndInstallFlags ++ [ 50 59 "INSTALL_PATH=\${out}" 51 - "DEBUG_LEVEL=0" 52 60 "install-shared" 53 61 "install-static" 54 62 ]; ··· 66 74 description = "A library that provides an embeddable, persistent key-value store for fast storage"; 67 75 license = licenses.bsd3; 68 76 platforms = platforms.allBut [ "i686-linux" ]; 69 - maintainers = with maintainers; [ wkennington ]; 77 + maintainers = with maintainers; [ adev wkennington ]; 70 78 }; 71 79 }