2019-05-17 08:57:53 +01:00
|
|
|
{ stdenv, fetchurl, libresolv, perl }:
|
2017-10-07 20:05:25 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-17 08:57:53 +01:00
|
|
|
version = "1.10";
|
|
|
|
pname = "dnstracer";
|
2017-10-07 20:05:25 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-17 08:57:53 +01:00
|
|
|
url = "https://www.mavetju.org/download/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "089bmrjnmsga2n0r4xgw4bwbf41xdqsnmabjxhw8lngg2pns1kb4";
|
2017-10-07 20:05:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2019-05-17 08:57:53 +01:00
|
|
|
nativeBuildInputs = [ perl /* for pod2man */ ];
|
|
|
|
|
2017-10-07 20:05:25 +01:00
|
|
|
setOutputFlags = false;
|
|
|
|
|
2019-05-17 08:57:53 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 -t $out/bin dnstracer
|
|
|
|
install -Dm755 -t $man/share/man/man8 dnstracer.8
|
|
|
|
'';
|
|
|
|
|
2017-10-26 00:56:19 +01:00
|
|
|
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ libresolv ];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lresolv";
|
|
|
|
|
2017-10-07 20:05:25 +01:00
|
|
|
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.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.mavetju.org/unix/general.php";
|
2017-10-07 20:05:25 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ andir ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|