2015-07-27 22:06:00 +02:00
|
|
|
{ stdenv, fetchurl, which, m4, python
|
|
|
|
, protobuf, boost, zlib, curl, openssl, icu, jemalloc
|
|
|
|
}:
|
2013-11-08 23:45:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-14 19:58:14 +02:00
|
|
|
name = "rethinkdb-${version}";
|
2015-07-27 22:04:39 +02:00
|
|
|
version = "2.0.4";
|
2013-11-08 23:45:57 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.rethinkdb.com/dist/${name}.tgz";
|
2015-07-27 22:04:39 +02:00
|
|
|
sha256 = "19qhia4lfa8a0rzp2v6lnlxp2lf4z4vqhgfxnicfdnx07q4r847i";
|
2013-11-08 23:45:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export ALLOW_WARNINGS=1
|
2015-01-08 10:26:49 +01:00
|
|
|
patchShebangs .
|
2013-11-08 23:45:57 +01:00
|
|
|
'';
|
|
|
|
|
2015-07-27 22:06:00 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-jemalloc"
|
|
|
|
"--lib-path=${jemalloc}/lib"
|
|
|
|
];
|
2013-11-08 23:45:57 +01:00
|
|
|
|
2015-07-27 22:06:00 +02:00
|
|
|
buildInputs = [ protobuf boost zlib curl openssl icu jemalloc ];
|
2013-11-08 23:45:57 +01:00
|
|
|
|
2014-04-26 20:15:28 +02:00
|
|
|
nativeBuildInputs = [ which m4 python ];
|
2013-11-08 23:45:57 +01:00
|
|
|
|
2015-07-27 22:06:00 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-11-08 23:45:57 +01:00
|
|
|
meta = {
|
|
|
|
description = "An open-source distributed database built with love";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = http://www.rethinkdb.com;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.agpl3;
|
2013-11-08 23:45:57 +01:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|