Skip to content

Commit

Permalink
knot-resolver: yet another attempt to fix build on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jan 30, 2017
1 parent 49b1363 commit 612333a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkgs/servers/dns/knot-resolver/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, utillinux, vimNox, which
{ stdenv, fetchurl, pkgconfig, utillinux, hexdump, which
, knot-dns, luajit, libuv, lmdb
, cmocka, systemd, hiredis, libmemcached
, gnutls, nettle
Expand All @@ -21,8 +21,7 @@ stdenv.mkDerivation rec {

configurePhase = ":";

nativeBuildInputs = [ pkgconfig which makeWrapper ]
++ [(if stdenv.isLinux then utillinux.bin/*hexdump*/ else vimNox/*xxd*/)];
nativeBuildInputs = [ pkgconfig which makeWrapper hexdump ];

buildInputs = [ knot-dns luajit libuv gnutls ]
# TODO: lmdb needs lmdb.pc; embedded for now
Expand Down
5 changes: 4 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -10321,7 +10321,10 @@ with pkgs;
jetty = callPackage ../servers/http/jetty { };

knot-dns = callPackage ../servers/dns/knot-dns { };
knot-resolver = callPackage ../servers/dns/knot-resolver { };
knot-resolver = callPackage ../servers/dns/knot-resolver {
# TODO: vimNox after it gets fixed on Darwin or something lighter
hexdump = if stdenv.isLinux then utillinux.bin else vim/*xxd*/;
};

rdkafka = callPackage ../development/libraries/rdkafka { };

Expand Down

0 comments on commit 612333a

Please sign in to comment.