3
0
Fork 0
forked from mirrors/nixpkgs

nixpkgs: remove sqlite/kyotocabinet deps for leveldb

These are only needed for some benchmarking utilities but they aren't
going to be generally useful to most people, I imagine.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2017-12-09 19:40:07 -06:00
parent 05d2a9efb5
commit 5ae883b8c3

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, sqlite, kyotocabinet }:
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "leveldb-${version}";
@ -11,19 +11,20 @@ stdenv.mkDerivation rec {
sha256 = "1bnsii47vbyqnbah42qgq6pbmmcg4k3fynjnw7whqfv6lpdgmb8d";
};
buildInputs = [ sqlite kyotocabinet ];
buildPhase = ''
make all db_bench{,_sqlite3,_tree_db} leveldbutil libmemenv.a
make all leveldbutil libmemenv.a
'';
installPhase = "
mkdir -p $out/{bin,lib,include}
cp -r include $out
cp lib* $out/lib
cp db_bench{,_sqlite3,_tree_db} leveldbutil $out/bin
mkdir -p $out/include/leveldb/helpers
cp helpers/memenv/memenv.h $out/include/leveldb/helpers
cp lib* $out/lib
cp leveldbutil $out/bin
";
meta = with stdenv.lib; {