@ -1,5 +1,5 @@
{ stdenv , fetchurl , fetchpatch , scons , boost , gperftools , pcre-cpp , snappy
, zlib , libyamlcpp , sasl , openssl , libpcap , Security
{ stdenv , fetchurl , fetchpatch , scons , boost , gperftools , pcre-cpp , snappy , zlib ,
libyamlcpp , sasl , openssl , libpcap , wiredtiger , Security , python27 , libtool , curl
} :
# Note:
@ -7,7 +7,8 @@
with stdenv . lib ;
let version = " 3 . 4 . 1 0 " ;
let version = " 4 . 0 . 4 " ;
python = python27 . withPackages ( ps : with ps ; [ pyyaml typing cheetah ] ) ;
system-libraries = [
" p c r e "
#"asio" -- XXX use package?
@ -19,6 +20,7 @@ let version = "3.4.10";
#"stemmer" -- not nice to package yet (no versioning, no makefile, no shared libs).
" y a m l "
] ++ optionals stdenv . isLinux [ " t c m a l l o c " ] ;
inherit ( stdenv . lib ) systems subtractLists ;
in stdenv . mkDerivation {
pname = " m o n g o d b " ;
@ -26,14 +28,14 @@ in stdenv.mkDerivation {
src = fetchurl {
url = " h t t p s : / / f a s t d l . m o n g o d b . o r g / s r c / m o n g o d b - s r c - r ${ version } . t a r . g z " ;
sha256 = " 1 w z 2 m h l 9 z 0 b 1 b d k g 6 m 8 v 8 m v w 9 k 6 0 m d v 5 y b q 5 5 4 x n 3 y j j 9 z 5 0 0 f 2 4 " ;
sha256 = " 1 q y c w r 9 f 9 9 b 5 c y 4 n f 5 4 y v 2 y 7 2 4 x i s 3 l w d 2 h 6 i v 2 p f p 3 6 q n h s v f h 2 " ;
} ;
nativeBuildInputs = [ scons ] ;
buildInputs = [
sasl boost gperftools pcre-cpp snappy
zlib libyamlcpp sasl openssl . dev openssl . out libpcap
] ++ stdenv . lib . optionals stdenv . isDarwin [ Security ] ;
zlib libyamlcpp sasl openssl . dev openssl . out libpcap python curl
] ++ stdenv . lib . optionals stdenv . isDarwin [ Security libtool ] ;
patches =
[
@ -41,11 +43,6 @@ in stdenv.mkDerivation {
# keeping dependencies to build inputs in the final output.
# We remove the build flags from buildInfo data.
./forget-build-dependencies.patch
( fetchpatch {
url = https://projects.archlinux.org/svntogit/community.git/plain/trunk/boost160.patch?h=packages/mongodb ;
name = " b o o s t 1 6 0 . p a t c h " ;
sha256 = " 0 b v s f 3 4 9 9 z j 5 5 p z a m w j m s s s r 6 x 6 3 w 4 3 4 9 4 4 w 7 6 2 7 3 f r 5 r x w z c m h 8 " ;
} )
] ;
postPatch = ''
@ -89,6 +86,11 @@ in stdenv.mkDerivation {
preInstall = ''
mkdir - p $ out/lib
'' ;
postInstall = ''
rm $ out/bin/install_compass
'' ;
prefixKey = " - - p r e f i x = " ;
enableParallelBuilding = true ;
@ -98,9 +100,10 @@ in stdenv.mkDerivation {
meta = {
description = " A s c a l a b l e , h i g h - p e r f o r m a n c e , o p e n s o u r c e N o S Q L d a t a b a s e " ;
homepage = http://www.mongodb.org ;
license = licenses . agpl3 ;
license = licenses . sspl ;
broken = stdenv . hostPlatform . isAarch64 ; #g++ has internal compiler errors
maintainers = with maintainers ; [ bluescreen303 offline cstrahan ] ;
platforms = platform s. unix ;
platforms = subtractLists systems . doubles . i686 systems . double s. unix ;
} ;
}