knot-*: simplify lmdb dependency
Partly thanks to lmdb.pc, partly thanks to 84bd2f4
(hopefully; untested on Darwin).
This commit is contained in:
parent
dbf4d4ebb5
commit
7c7f8c9c1d
@ -20,17 +20,13 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
gnutls jansson liburcu libidn
|
||||
nettle libedit
|
||||
libiconv
|
||||
libiconv lmdb
|
||||
# without sphinx &al. for developer documentation
|
||||
]
|
||||
# Use embedded lmdb there for now, as detection is broken on Darwin somehow.
|
||||
++ optionals stdenv.isLinux [ libcap_ng systemd lmdb ]
|
||||
++ optionals stdenv.isLinux [ libcap_ng systemd ]
|
||||
++ libintlOrEmpty
|
||||
++ optional stdenv.isDarwin zlib; # perhaps due to gnutls
|
||||
|
||||
# Not ideal but seems to work on Linux.
|
||||
configureFlags = optional stdenv.isLinux "--with-lmdb=${stdenv.lib.getLib lmdb}";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
CFLAGS = [ "-O2" "-DNDEBUG" ];
|
||||
|
@ -24,8 +24,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ pkgconfig which makeWrapper hexdump ];
|
||||
|
||||
# http://knot-resolver.readthedocs.io/en/latest/build.html#requirements
|
||||
buildInputs = [ knot-dns luajit libuv gnutls nettle ]
|
||||
++ optional stdenv.isLinux lmdb # system lmdb causes some problems on Darwin
|
||||
buildInputs = [ knot-dns luajit libuv gnutls nettle lmdb ]
|
||||
++ optional doInstallCheck cmocka
|
||||
++ optional stdenv.isLinux systemd # sd_notify
|
||||
++ optionals extraFeatures [
|
||||
|
Loading…
Reference in New Issue
Block a user