1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

knot-*: simplify lmdb dependency

Partly thanks to lmdb.pc, partly thanks to 84bd2f4
(hopefully; untested on Darwin).
This commit is contained in:
Vladimír Čunát 2017-09-23 14:14:13 +02:00
parent dbf4d4ebb5
commit 7c7f8c9c1d
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 3 additions and 8 deletions

View file

@ -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" ];

View file

@ -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 [