Merge pull request #520 from dysinger/t/leveldb

Add Google's LevelDB (BSD) to Nix
This commit is contained in:
Evgeny Egorochkin 2013-05-11 04:35:23 -07:00
commit c7b3fbddf0
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "leveldb-1.9.0";
src = fetchurl {
url = "https://leveldb.googlecode.com/files/${name}.tar.gz";
sha256 = "b2699b04e5aba8e98382c4955b94725d1f76bd0b5decd60c5628205b717a1d4f";
};
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/";
description = "A fast and lightweight key/value database library by Google.";
license = "BSD";
};
}

View File

@ -4139,6 +4139,8 @@ let
lesstif93 = callPackage ../development/libraries/lesstif-0.93 { };
leveldb = callPackage ../development/libraries/leveldb { };
levmar = callPackage ../development/libraries/levmar { };
leptonica = callPackage ../development/libraries/leptonica { };