dnstracer: fix build on darwin

This commit is contained in:
Andreas Rammhold 2017-10-26 01:56:19 +02:00
parent 4068703502
commit 32d6259eec
No known key found for this signature in database
GPG Key ID: E432E410B5E48C86
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, libresolv }:
stdenv.mkDerivation rec {
version = "1.9";
@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
setOutputFlags = false;
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ libresolv ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lresolv";
meta = with stdenv.lib; {
description = "Dnstracer determines where a given Domain Name Server (DNS) gets its information from, and follows the chain of DNS servers back to the servers which know the data.";
homepage = http://www.mavetju.org/unix/general.php;

View File

@ -19783,5 +19783,7 @@ with pkgs;
duti = callPackage ../os-specific/darwin/duti {};
dnstracer = callPackage ../tools/networking/dnstracer {};
dnstracer = callPackage ../tools/networking/dnstracer {
inherit (darwin) libresolv;
};
}