Merge pull request #30809 from andir/dnstracer-darwin

dnstracer: fix build on darwin
This commit is contained in:
Daiderd Jordan 2017-10-26 11:30:24 +02:00 committed by GitHub
commit 31db63bd74
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { stdenv, fetchurl, libresolv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.9"; version = "1.9";
@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
setOutputFlags = false; setOutputFlags = false;
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ libresolv ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lresolv";
meta = with stdenv.lib; { 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."; 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; homepage = http://www.mavetju.org/unix/general.php;

View file

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