knot-dns: use shared lmdb

This commit is contained in:
Vladimír Čunát 2017-02-13 16:37:52 +01:00
parent 1a55974cef
commit 5b75338a50
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -16,15 +16,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
gnutls jansson liburcu libidn
gnutls jansson liburcu libidn lmdb
nettle libedit
libiconv
# without sphinx &al. for developer documentation
]
# Use embedded lmdb there for now, as detection is broken on Darwin somehow.
++ stdenv.lib.optionals stdenv.isLinux [ libcap_ng systemd lmdb ]
++ stdenv.lib.optionals stdenv.isLinux [ libcap_ng systemd ]
++ stdenv.lib.optional stdenv.isDarwin zlib; # perhaps due to gnutls
configureFlags = [ "--with-lmdb=${stdenv.lib.getLib lmdb}"/*not perfect*/ ];
enableParallelBuilding = true;
CFLAGS = [ "-O2" "-DNDEBUG" ];