b54b5f9ad8
- mark osquery as broken - mark ceph as broken both osquery and ceph packages are outdated. furthermore, ceph has its own inline rocksdb source tree which isn't use in the current nixpkg. this needs to be fixed.
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, lib, bzip2, cmake, gflags, lz4, snappy, zlib, zstd, enableLite ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rocksdb";
|
|
version = "6.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0gy2zjga3r8k9pbn2b0b5fzv4m0h2ip3zmyja1i7fli9n56civ3y";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ bzip2 gflags lz4 snappy zlib zstd ];
|
|
|
|
patches = [ ./0001-findzlib.patch ];
|
|
|
|
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"
|
|
(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 ];
|
|
};
|
|
}
|