mongodb: upgraded to 2.0.6
svn path=/nixpkgs/trunk/; revision=34470
This commit is contained in:
parent
3d4ab75229
commit
51ec873c8d
@ -2,12 +2,14 @@
|
|||||||
|
|
||||||
assert useV8 -> v8 != null;
|
assert useV8 -> v8 != null;
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mongodb-2.0.5";
|
name = "mongodb-2.0.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://downloads.mongodb.org/src/mongodb-src-r2.0.5.tar.gz";
|
url = "http://downloads.mongodb.org/src/mongodb-src-r2.0.6.tar.gz";
|
||||||
sha256 = "0vnwphjn0iqgjrvfk18vridx5324zmmbrapp2d9rbqc9xg6jrpav";
|
sha256 = "0kiiz8crx318sdn0wd9d88pzx9s1c6ak2dhd0zw7kl63gmd74wm9";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [scons which boost] ++ stdenv.lib.optional useV8 v8;
|
buildInputs = [scons which boost] ++ stdenv.lib.optional useV8 v8;
|
||||||
@ -22,11 +24,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export TERM=""
|
export TERM=""
|
||||||
scons all --cc=`which gcc` --cxx=`which g++` --libpath=${boost}/lib --cpppath=${boost}/include ${if useV8 then "--usev8" else ""}
|
scons all --cc=`which gcc` --cxx=`which g++` --libpath=${boost}/lib --cpppath=${boost}/include \
|
||||||
|
${optionalString useV8 "--usev8"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
scons install --cc=`which gcc` --cxx=`which g++` --libpath=${boost}/lib --cpppath=${boost}/include --full --prefix=$out
|
scons install --cc=`which gcc` --cxx=`which g++` --libpath=${boost}/lib --cpppath=${boost}/include \
|
||||||
|
${optionalString useV8 "--usev8"} --full --prefix=$out
|
||||||
if [ -d $out/lib64 ]; then
|
if [ -d $out/lib64 ]; then
|
||||||
mv $out/lib64 $out/lib
|
mv $out/lib64 $out/lib
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user