summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-04-08 14:41:17 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-04-08 14:41:17 -0700
commit1e4e684fcb1f1888399483b42b4fc3af792e30c8 (patch)
tree9d1e381ae269f070d2ff2778c231c28e80c66e41 /pkgs/servers
parentc65311116717d8c563b849f7a0df7cbd5d1cfe78 (diff)
downloadnixpkgs-1e4e684fcb1f1888399483b42b4fc3af792e30c8.tar
nixpkgs-1e4e684fcb1f1888399483b42b4fc3af792e30c8.tar.gz
nixpkgs-1e4e684fcb1f1888399483b42b4fc3af792e30c8.tar.bz2
nixpkgs-1e4e684fcb1f1888399483b42b4fc3af792e30c8.tar.lz
nixpkgs-1e4e684fcb1f1888399483b42b4fc3af792e30c8.tar.xz
nixpkgs-1e4e684fcb1f1888399483b42b4fc3af792e30c8.tar.zst
nixpkgs-1e4e684fcb1f1888399483b42b4fc3af792e30c8.zip
mongodb: 2.6.8 -> 3.0.1
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/nosql/mongodb/default.nix33
1 files changed, 16 insertions, 17 deletions
diff --git a/pkgs/servers/nosql/mongodb/default.nix b/pkgs/servers/nosql/mongodb/default.nix
index dbfaf313d8a..99cf6cd9757 100644
--- a/pkgs/servers/nosql/mongodb/default.nix
+++ b/pkgs/servers/nosql/mongodb/default.nix
@@ -1,25 +1,33 @@
 { stdenv, fetchurl, scons, boost, gperftools, pcre, snappy
-, libyamlcpp, sasl, openssl, libpcap }:
+, zlib, libyamlcpp, sasl, openssl, libpcap, wiredtiger
+}:
 
 with stdenv.lib;
 
-let version = "2.6.8";
+let version = "3.0.1";
     system-libraries = [
       "pcre"
+      "wiredtiger"
       "boost"
       "snappy"
+      "zlib"
+      # "v8"
       # "stemmer" -- not nice to package yet (no versioning, no makefile, no shared libs)
       "yaml"
-      # "v8"
-    ] ++ optionals (!stdenv.isDarwin) [ "tcmalloc" ];
+    ] ++ optionals stdenv.isLinux [ "tcmalloc" ];
     buildInputs = [
       sasl boost gperftools pcre snappy
-      libyamlcpp sasl openssl libpcap
+      zlib libyamlcpp sasl openssl libpcap wiredtiger
     ];
 
     other-args = concatStringsSep " " ([
+      "--c++11=on"
       "--ssl"
+      #"--rocksdb" # Don't have this packaged yet
+      "--wiredtiger=on"
+      "--js-engine=v8-3.25"
       "--use-sasl-client"
+      "--variant-dir=nixos" # Needed so we don't produce argument lists that are too long for gcc / ld
       "--extrapath=${concatStringsSep "," buildInputs}"
     ] ++ map (lib: "--use-system-${lib}") system-libraries);
 
@@ -28,29 +36,20 @@ in stdenv.mkDerivation rec {
 
   src = fetchurl {
     url = "http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz";
-    sha256 = "01hs65xswggy628hxka2f63qvwz5rfhqlkb05kr20wz1kl6zd5qr";
+    sha256 = "04qjw7b98h37g8rcih7va3rvg2z95ly38bg181a4nfkak50hd638";
   };
 
   nativeBuildInputs = [ scons ];
   inherit buildInputs;
 
   postPatch = ''
-    # fix yaml-cpp detection
-    sed -i -e "s/\[\"yaml\"\]/\[\"yaml-cpp\"\]/" SConstruct
-
-    # bug #482576
-    sed -i -e "/-Werror/d" src/third_party/v8/SConscript
-
-    # fix inclusion of std::swap
-    sed -i '1i #include <algorithm>' src/mongo/shell/linenoise_utf8.h
-
     # fix environment variable reading
     substituteInPlace SConstruct \
-        --replace "Environment( BUILD_DIR" "Environment( ENV = os.environ, BUILD_DIR"
+        --replace "env = Environment(" "env = Environment(ENV = os.environ,"
   '';
 
   buildPhase = ''
-    scons all --release ${other-args}
+    scons core --release ${other-args}
   '';
 
   installPhase = ''