mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 06:05:13 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
37 lines
975 B
Nix
37 lines
975 B
Nix
{ stdenv, fetchFromGitHub, sqlite, kyotocabinet }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "leveldb-${version}";
|
|
version = "1.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "leveldb";
|
|
rev = "v${version}";
|
|
sha256 = "1bnsii47vbyqnbah42qgq6pbmmcg4k3fynjnw7whqfv6lpdgmb8d";
|
|
};
|
|
|
|
buildInputs = [ sqlite kyotocabinet ];
|
|
|
|
buildPhase = ''
|
|
make all db_bench{,_sqlite3,_tree_db} leveldbutil libmemenv.a
|
|
'';
|
|
|
|
installPhase = "
|
|
mkdir -p $out/{bin,lib,include}
|
|
cp -r include $out
|
|
cp lib* $out/lib
|
|
cp db_bench{,_sqlite3,_tree_db} leveldbutil $out/bin
|
|
mkdir -p $out/include/leveldb/helpers
|
|
cp helpers/memenv/memenv.h $out/include/leveldb/helpers
|
|
";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://code.google.com/p/leveldb/;
|
|
description = "Fast and lightweight key/value database library by Google";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|