summary refs log tree commit diff
path: root/pkgs/tools/networking/dnsperf/default.nix
blob: 9d6b85092efce49261325932845a95b7963dd16f (plain) (blame)
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
{ stdenv, fetchurl, bind, libseccomp, zlib, openssl, libcap }:

stdenv.mkDerivation rec {
  name = "dnsperf-${version}";
  version = "2.1.0.0";

  src = fetchurl {
    url = "ftp://ftp.nominum.com/pub/nominum/dnsperf/${version}/"
        + "dnsperf-src-${version}-1.tar.gz";
    sha256 = "03kfc65s5a9csa5i7xjsv0psq144k8d9yw7xlny61bg1h2kg1db4";
  };

  outputs = [ "out" "man" "doc" ];

  buildInputs = [ bind zlib openssl ]
              ++ stdenv.lib.optional stdenv.isLinux [ libcap libcap.lib libseccomp ];

  postInstall = ''
    mkdir -p "$out/share/doc/"
    cp -r ./doc "$out/share/doc/dnsperf"
  '';

  meta = with stdenv.lib; {
    outputsToInstall = outputs; # The man pages and PDFs are likely useful to most.

    description = "Tools for DNS benchmaring";
    homepage = https://www.akamai.com/us/en/products/network-operator/measurement-tools.jsp;
    license = licenses.isc;
    platforms = platforms.unix;
    maintainers = [ maintainers.vcunat ];
  };
}