3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/dnsperf/default.nix

33 lines
971 B
Nix
Raw Normal View History

2018-06-11 01:32:17 +01:00
{ stdenv, fetchurl, bind, libseccomp, zlib, openssl, libcap }:
2016-12-08 18:13:42 +00:00
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" ];
2016-12-08 18:13:42 +00:00
2018-06-11 01:32:17 +01:00
buildInputs = [ bind zlib openssl ]
++ stdenv.lib.optional stdenv.isLinux [ libcap libcap.lib libseccomp ];
2016-12-08 18:13:42 +00:00
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;
2016-12-08 18:13:42 +00:00
license = licenses.isc;
platforms = platforms.unix;
maintainers = [ maintainers.vcunat ];
};
}