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