summary refs log tree commit diff
path: root/pkgs/servers/nosql/mongodb
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-04-03 11:01:57 +0000
committerRobin Gloster <mail@glob.in>2016-04-03 11:01:57 +0000
commit696d85a62d8418e8b33f5f95b932b82706f8d338 (patch)
tree7afed180c5eb396a567c5a20a4a59859299c6f14 /pkgs/servers/nosql/mongodb
parent5df521abdabe5d294811b9824a5839b1ebbd3127 (diff)
parentb8755a4cdf8dd426ac642c006825d302dfe5f4b1 (diff)
downloadnixlib-696d85a62d8418e8b33f5f95b932b82706f8d338.tar
nixlib-696d85a62d8418e8b33f5f95b932b82706f8d338.tar.gz
nixlib-696d85a62d8418e8b33f5f95b932b82706f8d338.tar.bz2
nixlib-696d85a62d8418e8b33f5f95b932b82706f8d338.tar.lz
nixlib-696d85a62d8418e8b33f5f95b932b82706f8d338.tar.xz
nixlib-696d85a62d8418e8b33f5f95b932b82706f8d338.tar.zst
nixlib-696d85a62d8418e8b33f5f95b932b82706f8d338.zip
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/servers/nosql/mongodb')
-rw-r--r--pkgs/servers/nosql/mongodb/2.4.8.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/servers/nosql/mongodb/2.4.8.nix b/pkgs/servers/nosql/mongodb/2.4.8.nix
new file mode 100644
index 000000000000..448d260bdb9d
--- /dev/null
+++ b/pkgs/servers/nosql/mongodb/2.4.8.nix
@@ -0,0 +1,45 @@
+# This derivation was resurrected from 4c8ec5e12e187347fd97b1a1a9a43eb19e009ed0
+# by elitak for use with the Ubiquiti mFi Controller package, which breaks at
+# runtime on mongodb3+ and jre8+. We will need to pull in sufficiently old
+# versions of boost and v8 to build this, as well.
+{ stdenv, fetchurl, scons, boost155, v8_3_14, gperftools, pcre, snappy }:
+with stdenv.lib;
+let
+  version = "2.4.8";
+in
+stdenv.mkDerivation rec {
+  name = "mongodb-${version}";
+
+  src = fetchurl {
+    url = "http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz";
+    sha256 = "1p6gnharypglfp39halp72fig96fqjhakyy7m76a1prxwpjkqw7x";
+  };
+
+  nativeBuildInputs = [ scons boost155 v8_3_14 gperftools pcre snappy ];
+
+  postPatch = ''
+    substituteInPlace SConstruct \
+        --replace "Environment( BUILD_DIR" "Environment( ENV = os.environ, BUILD_DIR" \
+        --replace 'CCFLAGS=["-Werror", "-pipe"]' 'CCFLAGS=["-pipe"]'
+  '';
+
+  NIX_CFLAGS_COMPILE = "-Wno-unused-local-typedefs";
+
+  buildPhase = ''
+    export SCONSFLAGS="-j$NIX_BUILD_CORES"
+    scons all --use-system-all
+  '';
+
+  installPhase = ''
+    mkdir -p $out/lib
+    scons install --use-system-all --full --prefix=$out
+  '';
+
+  meta = {
+    description = "A scalable, high-performance, open source NoSQL database";
+    homepage = http://www.mongodb.org;
+    license = licenses.agpl3;
+    maintainers = with maintainers; [ bluescreen303 elitak ];
+    platforms = platforms.linux;
+  };
+}