mongodb: upgrade to 2.4.3 and use system libraries
This commit is contained in:
parent
81022e4b0a
commit
3d5121233d
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, scons, which, v8}:
|
{ stdenv, fetchurl, scons, boost, v8, gperftools, pcre, snappy }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -9,33 +9,31 @@ let installerPatch = fetchurl {
|
|||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mongodb-2.4.0";
|
name = "mongodb-2.4.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://downloads.mongodb.org/src/mongodb-src-r2.4.0.tar.gz;
|
url = http://downloads.mongodb.org/src/mongodb-src-r2.4.3.tar.gz;
|
||||||
sha256 = "115wrw23naxpaiwh8ar6g40f2nsdbz1hdpkp88wbi5yc9m6drg41";
|
sha256 = "1k653xmwphdk88z2byz5fglr8xcsm8nw13prls1rx16qnc6h1pb1";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ scons which ];
|
nativeBuildInputs = [ scons boost v8 gperftools pcre snappy ];
|
||||||
|
|
||||||
patches = [ installerPatch ];
|
patches = [ installerPatch ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace SConstruct --replace "Environment( BUILD_DIR" "Environment( ENV = os.environ, BUILD_DIR"
|
substituteInPlace SConstruct \
|
||||||
substituteInPlace SConstruct --replace "#/../v8" "${v8}" \
|
--replace "Environment( BUILD_DIR" "Environment( ENV = os.environ, BUILD_DIR" \
|
||||||
--replace "[\"${v8}/\"]" "[\"${v8}/lib\"]"
|
--replace 'CCFLAGS=["-Werror", "-pipe"]' 'CCFLAGS=["-pipe"]'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
echo $PATH
|
export SCONSFLAGS="-j$NIX_BUILD_CORES"
|
||||||
scons all --cc=`which gcc` --cxx=`which g++`
|
scons all --use-system-all
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
scons install --cc=`which gcc` --cxx=`which g++` --full --prefix=$out
|
mkdir -p $out/lib
|
||||||
rm -rf $out/lib64 # exact same files as installed in $out/lib
|
scons install --use-system-all --full --prefix=$out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user