19 stdenv.mkDerivation rec {
24 url = "https://download.rethinkdb.com/repository/raw/dist/${pname}-${version}.tgz";
25 hash = "sha256-UJEjdgK2KDDbLLParKarNGMjI3QeZxDC8N5NhPRCcR8=";
29 substituteInPlace external/quickjs_*/Makefile \
30 --replace "gcc-ar" "${stdenv.cc.targetPrefix}ar" \
31 --replace "gcc" "${stdenv.cc.targetPrefix}cc"
35 export ALLOW_WARNINGS=1
39 configureFlags = lib.optionals (!stdenv.hostPlatform.isDarwin) [
41 "--lib-path=${jemalloc}/lib"
44 makeFlags = [ "rethinkdb" ];
55 ++ lib.optional (!stdenv.hostPlatform.isDarwin) jemalloc
56 ++ lib.optional stdenv.hostPlatform.isDarwin libtool;
61 python3Packages.python
65 enableParallelBuilding = true;
68 wrapProgram $out/bin/rethinkdb \
69 --prefix PATH ":" "${python3Packages.rethinkdb}/bin"
73 description = "Open-source distributed database built with love";
74 mainProgram = "rethinkdb";
76 RethinkDB is built to store JSON documents, and scale to
77 multiple machines with very little effort. It has a pleasant
78 query language that supports really useful queries like table
79 joins and group by, and is easy to setup and learn.
81 homepage = "https://rethinkdb.com";
82 license = lib.licenses.asl20;
83 platforms = lib.platforms.unix;
84 maintainers = with lib.maintainers; [