aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2017-11-26 08:51:29 +0200
committerEfraim Flashner <efraim@flashner.co.il>2017-11-26 14:16:08 +0200
commit319b52c38271943182c0269b480a57d715820cdc (patch)
tree10a8089cf9576c62b676df281408be01c42dd6f5
parent29cfbfca4389f6b10e99eb6b5b615e8c12e3f2da (diff)
downloadpatches-319b52c38271943182c0269b480a57d715820cdc.tar
patches-319b52c38271943182c0269b480a57d715820cdc.tar.gz
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.
-rw-r--r--gnu/packages/databases.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index c187c002f1..0d3b4960a0 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -392,6 +392,10 @@ applications.")
(inputs
`(("openssl" ,openssl)
("pcre" ,pcre)
+ ,@(match (%current-system)
+ ((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
+ `(("wiredtiger" ,wiredtiger)))
+ (_ `()))
("yaml-cpp" ,yaml-cpp)
("zlib" ,zlib)
("snappy" ,snappy)
@@ -411,7 +415,7 @@ applications.")
(%current-system)))
'("i686-linux" "armhf-linux"))
``"--wiredtiger=off"
- ``"--wiredtiger=on")
+ ``"--use-system-wiredtiger")
;; TODO
;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1
;; --use-system-boost