Skip to content

Commit

Permalink
knot-*: simplify lmdb dependency
Browse files Browse the repository at this point in the history
Partly thanks to lmdb.pc, partly thanks to 84bd2f4
(hopefully; untested on Darwin).
  • Loading branch information
vcunat committed Sep 23, 2017
1 parent dbf4d4e commit 7c7f8c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions pkgs/servers/dns/knot-dns/default.nix
Expand Up @@ -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" ];
Expand Down
3 changes: 1 addition & 2 deletions pkgs/servers/dns/knot-resolver/default.nix
Expand Up @@ -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 [
Expand Down

0 comments on commit 7c7f8c9

Please sign in to comment.