@@ -1,4 +1,4 @@
1−{ stdenv
1+{ stdenv, lib
22, fetchFromGitHub
33, fixDarwinDylibNames
44, which, perl
@@ -15,12 +15,13 @@
1515
1616let
1717 malloc = if jemalloc != null then jemalloc else gperftools;
18+ tools = [ "sst_dump" "ldb" "rocksdb_dump" "rocksdb_undump" "blob_dump" ];
1819in
1920stdenv.mkDerivation rec {
2021 name = "rocksdb-${version}";
2122 version = "5.10.3";
2223
23− outputs = [ "dev" "out" "static" ];
24+ outputs = [ "dev" "out" "static" "bin" ];
2425
2526 src = fetchFromGitHub {
2627 owner = "facebook";
@@ -55,7 +56,7 @@ stdenv.mkDerivation rec {
5556 buildFlags = buildAndInstallFlags ++ [
5657 "shared_lib"
5758 "static_lib"
58− ];
59+ ] ++ tools ;
5960
6061 installFlags = buildAndInstallFlags ++ [
6162 "INSTALL_PATH=\${out}"
@@ -69,6 +70,9 @@ stdenv.mkDerivation rec {
6970 cat make_config.mk
7071 mkdir -pv $static/lib/
7172 mv -vi $out/lib/${LIBNAME}.a $static/lib/
73+
74+ install -d ''${!outputBin}/bin
75+ install -D ${lib.concatStringsSep " " tools} ''${!outputBin}/bin
7276 '';
7377
7478 enableParallelBuilding = true;