@@ -7,7 +7,7 @@
77
88with stdenv.lib;
99
10−let version = "3.2.9";
10+let version = "3.4.2";
1111 system-libraries = [
1212 "pcre"
1313 #"asio" -- XXX use package?
@@ -43,8 +43,8 @@ in stdenv.mkDerivation rec {
4343 name = "mongodb-${version}";
4444
4545 src = fetchurl {
46− url = "http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz";
47− sha256 = "06q6j2bjy31pjwqws53wdpmn2x8w2hafzsnv1s3wx15pc9vq3y15";
46+ url = "https://fastdl.mongodb.org/src/mongodb-src-r${version}.tar.gz";
47+ sha256 = "0n8vspccrpd2z9xk3yjpz4gprd730dfacw914ksjzz9iadn0zdi9";
4848 };
4949
5050 nativeBuildInputs = [ scons ];
@@ -52,12 +52,6 @@ in stdenv.mkDerivation rec {
5252
5353 patches =
5454 [
55− # When not building with the system valgrind, the build should use the
56− # vendored header file - regardless of whether or not we're using the system
57− # tcmalloc - so we need to lift the include path manipulation out of the
58− # conditional.
59− ./valgrind-include.patch
60−
6155 # MongoDB keeps track of its build parameters, which tricks nix into
6256 # keeping dependencies to build inputs in the final output.
6357 # We remove the build flags from buildInfo data.
@@ -87,6 +81,8 @@ in stdenv.mkDerivation rec {
8781 --replace 'engine("wiredTiger")' 'engine("mmapv1")'
8882 '';
8983
84+ NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isClang "-Wno-unused-command-line-argument";
85+
9086 buildPhase = ''
9187 scons -j $NIX_BUILD_CORES core --release ${other-args}
9288 '';