depot/third_party/nixpkgs/pkgs/tools/networking/dnstracer/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
1 KiB
Nix

{ stdenv, fetchurl, libresolv, perl }:
stdenv.mkDerivation rec {
version = "1.10";
pname = "dnstracer";
src = fetchurl {
url = "https://www.mavetju.org/download/${pname}-${version}.tar.bz2";
sha256 = "089bmrjnmsga2n0r4xgw4bwbf41xdqsnmabjxhw8lngg2pns1kb4";
};
outputs = [ "out" "man" ];
nativeBuildInputs = [ perl /* for pod2man */ ];
setOutputFlags = false;
installPhase = ''
install -Dm755 -t $out/bin dnstracer
install -Dm755 -t $man/share/man/man8 dnstracer.8
'';
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";
license = licenses.bsd2;
maintainers = with maintainers; [ andir ];
platforms = platforms.all;
};
}