leveldb: 1.15 -> 1.18
This commit is contained in:
parent
5e39ab62d1
commit
a84e566ba2
@ -1,27 +1,34 @@
|
||||
{stdenv, fetchurl}:
|
||||
{ stdenv, fetchFromGitHub, sqlite, kyotocabinet }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "leveldb-1.15.0";
|
||||
name = "leveldb-${version}";
|
||||
version = "1.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://leveldb.googlecode.com/files/${name}.tar.gz";
|
||||
sha256 = "10363j8qmlyh971ipb7fmgk9b97bl5267c0xyccrgvpj3rbyri6p";
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "leveldb";
|
||||
rev = "v${version}";
|
||||
sha256 = "1bnsii47vbyqnbah42qgq6pbmmcg4k3fynjnw7whqfv6lpdgmb8d";
|
||||
};
|
||||
|
||||
buildPhase = "make all db_bench";
|
||||
buildInputs = [ sqlite kyotocabinet ];
|
||||
|
||||
buildPhase = ''
|
||||
make all db_bench{,_sqlite3,_tree_db} leveldbutil
|
||||
'';
|
||||
|
||||
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/
|
||||
mkdir -p $out/{bin,lib,include}
|
||||
cp -r include $out
|
||||
cp lib* $out/lib
|
||||
cp db_bench{,_sqlite3,_tree_db} leveldbutil $out/bin
|
||||
";
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://code.google.com/p/leveldb/";
|
||||
description = "Fast and lightweight key/value database library by Google";
|
||||
license = "BSD";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user