2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libresolv, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = [] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libresolv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-lresolv";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.mavetju.org/unix/general.php";
|
|
|
|
license = licenses.bsd2;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "dnstracer";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|