mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
5ae883b8c3
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>
38 lines
855 B
Nix
38 lines
855 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "leveldb-${version}";
|
|
version = "1.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "leveldb";
|
|
rev = "v${version}";
|
|
sha256 = "1bnsii47vbyqnbah42qgq6pbmmcg4k3fynjnw7whqfv6lpdgmb8d";
|
|
};
|
|
|
|
buildPhase = ''
|
|
make all leveldbutil libmemenv.a
|
|
'';
|
|
|
|
installPhase = "
|
|
mkdir -p $out/{bin,lib,include}
|
|
|
|
cp -r include $out
|
|
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; {
|
|
homepage = https://github.com/google/leveldb;
|
|
description = "Fast and lightweight key/value database library by Google";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|