2013-05-11 08:52:32 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-06-01 21:39:34 +02:00
|
|
|
name = "leveldb-1.15.0";
|
2013-05-11 08:52:32 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://leveldb.googlecode.com/files/${name}.tar.gz";
|
2014-06-01 21:39:34 +02:00
|
|
|
sha256 = "10363j8qmlyh971ipb7fmgk9b97bl5267c0xyccrgvpj3rbyri6p";
|
2013-05-11 08:52:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = "make all db_bench";
|
|
|
|
|
|
|
|
installPhase = "
|
|
|
|
mkdir -p $out/lib/
|
|
|
|
cp libleveldb* $out/lib/
|
|
|
|
mkdir -p $out/include/
|
|
|
|
cp -r include $out/
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp db_bench $out/lib/
|
|
|
|
";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://code.google.com/p/leveldb/";
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Fast and lightweight key/value database library by Google";
|
2013-05-11 08:52:32 +02:00
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
}
|