@@ -1,45 +0,0 @@
1−# This derivation was resurrected from 4c8ec5e12e187347fd97b1a1a9a43eb19e009ed0
2−# by elitak for use with the Ubiquiti mFi Controller package, which breaks at
3−# runtime on mongodb3+ and jre8+. We will need to pull in sufficiently old
4−# versions of boost and v8 to build this, as well.
5−{ stdenv, fetchurl, scons, boost155, v8_3_14, gperftools, pcre-cpp, snappy }:
6−with stdenv.lib;
7−let
8− version = "2.4.8";
9−in
10−stdenv.mkDerivation rec {
11− name = "mongodb-${version}";
12−
13− src = fetchurl {
14− url = "http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz";
15− sha256 = "1p6gnharypglfp39halp72fig96fqjhakyy7m76a1prxwpjkqw7x";
16− };
17−
18− nativeBuildInputs = [ scons boost155 v8_3_14 gperftools pcre-cpp snappy ];
19−
20− postPatch = ''
21− substituteInPlace SConstruct \
22− --replace "Environment( BUILD_DIR" "Environment( ENV = os.environ, BUILD_DIR" \
23− --replace 'CCFLAGS=["-Werror", "-pipe"]' 'CCFLAGS=["-pipe"]'
24− '';
25−
26− NIX_CFLAGS_COMPILE = "-Wno-unused-local-typedefs";
27−
28− buildPhase = ''
29− export SCONSFLAGS="-j$NIX_BUILD_CORES"
30− scons all --use-system-all
31− '';
32−
33− installPhase = ''
34− mkdir -p $out/lib
35− scons install --use-system-all --full --prefix=$out
36− '';
37−
38− meta = {
39− description = "A scalable, high-performance, open source NoSQL database";
40− homepage = http://www.mongodb.org;
41− license = licenses.agpl3;
42− maintainers = with maintainers; [ bluescreen303 elitak ];
43− platforms = platforms.linux;
44− };
45−}