1 { lib, stdenv, fetchurl, libresolv, perl }:
3 stdenv.mkDerivation rec {
8 url = "https://www.mavetju.org/download/${pname}-${version}.tar.bz2";
9 sha256 = "089bmrjnmsga2n0r4xgw4bwbf41xdqsnmabjxhw8lngg2pns1kb4";
12 outputs = [ "out" "man" ];
14 nativeBuildInputs = [ perl /* for pod2man */ ];
16 setOutputFlags = false;
19 install -Dm755 -t $out/bin dnstracer
20 install -Dm755 -t $man/share/man/man8 dnstracer.8
23 buildInputs = [] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libresolv ];
25 NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-lresolv";
28 description = "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";
29 homepage = "http://www.mavetju.org/unix/general.php";
30 license = licenses.bsd2;
32 platforms = platforms.all;
33 mainProgram = "dnstracer";