Merge pull request #38998 from yorickvP/rocksdb-full
rocksdb: package binary tools
This commit is contained in:
commit
63a865c403
1 changed files with 6 additions and 2 deletions
|
@ -15,12 +15,13 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
malloc = if jemalloc != null then jemalloc else gperftools;
|
malloc = if jemalloc != null then jemalloc else gperftools;
|
||||||
|
tools = [ "sst_dump" "ldb" "rocksdb_dump" "rocksdb_undump" "blob_dump" ];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "rocksdb-${version}";
|
name = "rocksdb-${version}";
|
||||||
version = "5.10.3";
|
version = "5.10.3";
|
||||||
|
|
||||||
outputs = [ "dev" "out" "static" ];
|
outputs = [ "dev" "out" "static" "bin" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "facebook";
|
owner = "facebook";
|
||||||
|
@ -55,7 +56,7 @@ stdenv.mkDerivation rec {
|
||||||
buildFlags = buildAndInstallFlags ++ [
|
buildFlags = buildAndInstallFlags ++ [
|
||||||
"shared_lib"
|
"shared_lib"
|
||||||
"static_lib"
|
"static_lib"
|
||||||
];
|
] ++ tools ;
|
||||||
|
|
||||||
installFlags = buildAndInstallFlags ++ [
|
installFlags = buildAndInstallFlags ++ [
|
||||||
"INSTALL_PATH=\${out}"
|
"INSTALL_PATH=\${out}"
|
||||||
|
@ -69,6 +70,9 @@ stdenv.mkDerivation rec {
|
||||||
cat make_config.mk
|
cat make_config.mk
|
||||||
mkdir -pv $static/lib/
|
mkdir -pv $static/lib/
|
||||||
mv -vi $out/lib/${LIBNAME}.a $static/lib/
|
mv -vi $out/lib/${LIBNAME}.a $static/lib/
|
||||||
|
|
||||||
|
install -d ''${!outputBin}/bin
|
||||||
|
install -D ${stdenv.lib.concatStringsSep " " tools} ''${!outputBin}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
Loading…
Reference in a new issue