blob: dbda9c739a05d02c865fa97b5167169b4a5d10d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
stdenv,
fetchurl,
darwin,
perl,
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.10";
pname = "dnstracer";
src = fetchurl {
url = "https://www.mavetju.org/download/dnstracer-${finalAttrs.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 = [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libresolv ];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-lresolv";
};
meta = {
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";
homepage = "http://www.mavetju.org/unix/general.php";
license = lib.licenses.bsd2;
maintainers = [ ];
platforms = lib.platforms.all;
mainProgram = "dnstracer";
};
})
|