112436afc3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/rocksdb/versions
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, lib, bzip2, cmake, lz4, snappy, zlib, zstd, enableLite ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rocksdb";
|
|
version = "6.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0i993z7xxsbs595y7wxfhgm69mg5893lfkpidcbaqnzj8j0kn0ab";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ bzip2 lz4 snappy zlib zstd ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt --replace "find_package(zlib " "find_package(ZLIB "
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-DPORTABLE=1"
|
|
"-DWITH_JEMALLOC=0"
|
|
"-DWITH_JNI=0"
|
|
"-DWITH_TESTS=0"
|
|
"-DWITH_TOOLS=0"
|
|
"-DWITH_BZ2=1"
|
|
"-DWITH_LZ4=1"
|
|
"-DWITH_SNAPPY=1"
|
|
"-DWITH_ZLIB=1"
|
|
"-DWITH_ZSTD=1"
|
|
"-DWITH_GFLAGS=0"
|
|
(lib.optional
|
|
(stdenv.hostPlatform.system == "i686-linux"
|
|
|| stdenv.hostPlatform.system == "x86_64-linux")
|
|
"-DFORCE_SSE42=1")
|
|
(lib.optional enableLite "-DROCKSDB_LITE=1")
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://rocksdb.org;
|
|
description = "A library that provides an embeddable, persistent key-value store for fast storage";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ adev magenbluten ];
|
|
};
|
|
}
|