2021-11-28 11:31:24 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ldns
|
|
|
|
, libck
|
|
|
|
, nghttp2
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2019-01-25 16:09:55 +01:00
|
|
|
}:
|
2016-12-08 19:13:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dnsperf";
|
2021-11-28 11:31:24 +01:00
|
|
|
version = "2.8.0";
|
2016-12-08 19:13:42 +01:00
|
|
|
|
2019-01-25 16:09:55 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DNS-OARC";
|
|
|
|
repo = "dnsperf";
|
|
|
|
rev = "v${version}";
|
2021-11-28 11:31:24 +01:00
|
|
|
sha256 = "sha256-jemce+ix18IPAusEHh5QWcSQn/QRUOc3HTSk9jGt+SA=";
|
2016-12-08 19:13:42 +01:00
|
|
|
};
|
|
|
|
|
2021-11-28 11:31:24 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2019-07-24 17:06:54 +02:00
|
|
|
|
2020-12-09 14:21:53 +01:00
|
|
|
buildInputs = [
|
|
|
|
ldns # optional for DDNS (but cheap anyway)
|
2021-03-17 08:48:14 +01:00
|
|
|
libck
|
2021-11-28 11:31:24 +01:00
|
|
|
nghttp2
|
|
|
|
openssl
|
2020-12-09 14:21:53 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2016-12-08 19:13:42 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-12-08 19:13:42 +01:00
|
|
|
description = "Tools for DNS benchmaring";
|
2021-11-28 11:31:24 +01:00
|
|
|
homepage = "https://www.dns-oarc.net/tools/dnsperf";
|
2016-12-08 19:13:42 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.unix;
|
2021-11-28 11:31:24 +01:00
|
|
|
maintainers = with maintainers; [ vcunat ];
|
2016-12-08 19:13:42 +01:00
|
|
|
};
|
|
|
|
}
|