nixpkgs/pkgs/development/libraries/leveldb/default.nix

28 lines
619 B
Nix
Raw Normal View History

2013-05-11 06:52:32 +00:00
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
2014-06-01 19:39:34 +00:00
name = "leveldb-1.15.0";
2013-05-11 06:52:32 +00:00
src = fetchurl {
url = "https://leveldb.googlecode.com/files/${name}.tar.gz";
2014-06-01 19:39:34 +00:00
sha256 = "10363j8qmlyh971ipb7fmgk9b97bl5267c0xyccrgvpj3rbyri6p";
2013-05-11 06:52:32 +00: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/";
description = "Fast and lightweight key/value database library by Google";
2013-05-11 06:52:32 +00:00
license = "BSD";
};
}