git.iko.soy/typeable/nixpkgs
on master help sign in
mongodb: 2.6.8 -> 3.0.1
commit1e4e684fcb1f1888399483b42b4fc3af792e30c8 authorWilliam A. Kennington III <william@wkennington.com> dateWed 8 Apr 2015, 14:41 (12 years ago) parentc653111
1 file changed+16−17
pkgs/servers/nosql/mongodb/default.nix+16−17
pkgs/servers/nosql/mongodb/default.nix+16−17
@@ -1,25 +1,33 @@
11{ stdenv, fetchurl, scons, boost, gperftools, pcre, snappy
2−, libyamlcpp, sasl, openssl, libpcap }:
2+, zlib, libyamlcpp, sasl, openssl, libpcap, wiredtiger
3+}:
34
45with stdenv.lib;
56
6−let version = "2.6.8";
7+let version = "3.0.1";
78 system-libraries = [
89 "pcre"
10+ "wiredtiger"
911 "boost"
1012 "snappy"
13+ "zlib"
14+ # "v8"
1115 # "stemmer" -- not nice to package yet (no versioning, no makefile, no shared libs)
1216 "yaml"
13− # "v8"
14− ] ++ optionals (!stdenv.isDarwin) [ "tcmalloc" ];
17+ ] ++ optionals stdenv.isLinux [ "tcmalloc" ];
1518 buildInputs = [
1619 sasl boost gperftools pcre snappy
17− libyamlcpp sasl openssl libpcap
20+ zlib libyamlcpp sasl openssl libpcap wiredtiger
1821 ];
1922
2023 other-args = concatStringsSep " " ([
24+ "--c++11=on"
2125 "--ssl"
26+ #"--rocksdb" # Don't have this packaged yet
27+ "--wiredtiger=on"
28+ "--js-engine=v8-3.25"
2229 "--use-sasl-client"
30+ "--variant-dir=nixos" # Needed so we don't produce argument lists that are too long for gcc / ld
2331 "--extrapath=${concatStringsSep "," buildInputs}"
2432 ] ++ map (lib: "--use-system-${lib}") system-libraries);
2533
@@ -28,29 +36,20 @@ in stdenv.mkDerivation rec {
2836
2937 src = fetchurl {
3038 url = "http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz";
31− sha256 = "01hs65xswggy628hxka2f63qvwz5rfhqlkb05kr20wz1kl6zd5qr";
39+ sha256 = "04qjw7b98h37g8rcih7va3rvg2z95ly38bg181a4nfkak50hd638";
3240 };
3341
3442 nativeBuildInputs = [ scons ];
3543 inherit buildInputs;
3644
3745 postPatch = ''
38− # fix yaml-cpp detection
39− sed -i -e "s/\[\"yaml\"\]/\[\"yaml-cpp\"\]/" SConstruct
40−
41− # bug #482576
42− sed -i -e "/-Werror/d" src/third_party/v8/SConscript
43−
44− # fix inclusion of std::swap
45− sed -i '1i #include <algorithm>' src/mongo/shell/linenoise_utf8.h
46−
4746 # fix environment variable reading
4847 substituteInPlace SConstruct \
49− --replace "Environment( BUILD_DIR" "Environment( ENV = os.environ, BUILD_DIR"
48+ --replace "env = Environment(" "env = Environment(ENV = os.environ,"
5049 '';
5150
5251 buildPhase = ''
53− scons all --release ${other-args}
52+ scons core --release ${other-args}
5453 '';
5554
5655 installPhase = ''