@@ -1,4 +1,5 @@
1−{ stdenv, fetchurl, pkgconfig, utillinux, which, knot-dns, luajit, libuv, lmdb
1+{ stdenv, fetchurl, pkgconfig, utillinux, vimNox, which
2+, knot-dns, luajit, libuv, lmdb
23, cmocka, systemd, hiredis, libmemcached
34, gnutls, nettle
45, luajitPackages, makeWrapper
@@ -20,15 +21,16 @@ stdenv.mkDerivation rec {
2021
2122 configurePhase = ":";
2223
23− nativeBuildInputs = [ pkgconfig utillinux.bin/*hexdump*/ which ];
24+ nativeBuildInputs = [ pkgconfig which makeWrapper ]
25+ ++ [(if stdenv.isLinux then utillinux.bin/*hexdump*/ else vimNox/*xxd*/)];
26+
2427 buildInputs = [ knot-dns luajit libuv gnutls ]
2528 # TODO: lmdb needs lmdb.pc; embedded for now
2629 ## optional dependencies
2730 ++ optional doInstallCheck cmocka
31+ ++ optional stdenv.isLinux systemd # socket activation
2832 ++ [
2933 nettle # DNS cookies
30− systemd # socket activation
31− makeWrapper
3234 hiredis libmemcached # additional cache backends
3335 # http://knot-resolver.readthedocs.io/en/latest/build.html#requirements
3436 ];