gnu: mongodb: Use system wiredtiger when available.

* gnu/packages/databases.scm (mongodb)[inputs]: Add wiredtiger on
64-bit systems.
[arguments]: When using wiredtiger, use system wiredtiger.
This commit is contained in:
Efraim Flashner 2017-11-26 08:51:29 +02:00
parent 29cfbfca43
commit 319b52c382
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 5 additions and 1 deletions

View File

@ -392,6 +392,10 @@ applications.")
(inputs (inputs
`(("openssl" ,openssl) `(("openssl" ,openssl)
("pcre" ,pcre) ("pcre" ,pcre)
,@(match (%current-system)
((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
`(("wiredtiger" ,wiredtiger)))
(_ `()))
("yaml-cpp" ,yaml-cpp) ("yaml-cpp" ,yaml-cpp)
("zlib" ,zlib) ("zlib" ,zlib)
("snappy" ,snappy) ("snappy" ,snappy)
@ -411,7 +415,7 @@ applications.")
(%current-system))) (%current-system)))
'("i686-linux" "armhf-linux")) '("i686-linux" "armhf-linux"))
``"--wiredtiger=off" ``"--wiredtiger=off"
``"--wiredtiger=on") ``"--use-system-wiredtiger")
;; TODO ;; TODO
;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1 ;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1
;; --use-system-boost ;; --use-system-boost