2015-07-27 21:06:00 +01:00
|
|
|
{ stdenv, fetchurl, which, m4, python
|
|
|
|
, protobuf, boost, zlib, curl, openssl, icu, jemalloc
|
|
|
|
}:
|
2013-11-08 22:45:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-14 18:58:14 +01:00
|
|
|
name = "rethinkdb-${version}";
|
2015-09-16 00:03:30 +01:00
|
|
|
version = "2.1.3";
|
2013-11-08 22:45:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.rethinkdb.com/dist/${name}.tgz";
|
2015-09-16 00:03:30 +01:00
|
|
|
sha256 = "03w9fq3wcvwy04b3x6zb3hvwar7b9jfbpq77rmxdlgh5w64vvgwd";
|
2013-11-08 22:45:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export ALLOW_WARNINGS=1
|
2015-01-08 09:26:49 +00:00
|
|
|
patchShebangs .
|
2013-11-08 22:45:57 +00:00
|
|
|
'';
|
|
|
|
|
2015-07-27 21:06:00 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-jemalloc"
|
|
|
|
"--lib-path=${jemalloc}/lib"
|
|
|
|
];
|
2013-11-08 22:45:57 +00:00
|
|
|
|
2015-07-27 21:06:00 +01:00
|
|
|
buildInputs = [ protobuf boost zlib curl openssl icu jemalloc ];
|
2013-11-08 22:45:57 +00:00
|
|
|
|
2014-04-26 19:15:28 +01:00
|
|
|
nativeBuildInputs = [ which m4 python ];
|
2013-11-08 22:45:57 +00:00
|
|
|
|
2015-07-27 21:06:00 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-11-08 22:45:57 +00:00
|
|
|
meta = {
|
|
|
|
description = "An open-source distributed database built with love";
|
|
|
|
longDescription = ''
|
2015-09-16 00:03:30 +01:00
|
|
|
RethinkDB is built to store JSON documents, and scale to
|
|
|
|
multiple machines with very little effort. It has a pleasant
|
|
|
|
query language that supports really useful queries like table
|
|
|
|
joins and group by, and is easy to setup and learn.
|
2013-11-08 22:45:57 +00:00
|
|
|
'';
|
2015-09-16 00:03:30 +01:00
|
|
|
homepage = http://www.rethinkdb.com;
|
|
|
|
license = stdenv.lib.licenses.agpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice bluescreen303 ];
|
2013-11-08 22:45:57 +00:00
|
|
|
};
|
|
|
|
}
|