2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchFromGitHub, autoreconfHook, pkg-config
|
2021-03-17 07:48:14 +00:00
|
|
|
, openssl, ldns, libck
|
2019-01-25 15:09:55 +00:00
|
|
|
}:
|
2016-12-08 18:13:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dnsperf";
|
2021-03-30 15:05:53 +00:00
|
|
|
version = "2.5.2";
|
2016-12-08 18:13:42 +00:00
|
|
|
|
2019-01-16 11:59:36 +00:00
|
|
|
# The same as the initial commit of the new GitHub repo (only readme changed).
|
2019-01-25 15:09:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DNS-OARC";
|
|
|
|
repo = "dnsperf";
|
|
|
|
rev = "v${version}";
|
2021-03-30 15:05:53 +00:00
|
|
|
sha256 = "0dzi28z7hnyxbibwdsalvd93czf4d5pgmvrbn6hlh52znsn40gbb";
|
2016-12-08 18:13:42 +00:00
|
|
|
};
|
|
|
|
|
2017-07-11 09:14:14 +00:00
|
|
|
outputs = [ "out" "man" "doc" ];
|
2016-12-08 18:13:42 +00:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2019-07-24 15:06:54 +00:00
|
|
|
|
2020-12-09 13:21:53 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
ldns # optional for DDNS (but cheap anyway)
|
2021-03-17 07:48:14 +00:00
|
|
|
libck
|
2020-12-09 13:21:53 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2016-12-08 18:13:42 +00:00
|
|
|
|
2019-01-25 15:09:55 +00:00
|
|
|
# For now, keep including the old PDFs as well.
|
|
|
|
# https://github.com/DNS-OARC/dnsperf/issues/27
|
|
|
|
postInstall = let
|
|
|
|
src-doc = fetchurl {
|
|
|
|
url = "ftp://ftp.nominum.com/pub/nominum/dnsperf/2.1.0.0/"
|
|
|
|
+ "dnsperf-src-2.1.0.0-1.tar.gz";
|
|
|
|
sha256 = "03kfc65s5a9csa5i7xjsv0psq144k8d9yw7xlny61bg1h2kg1db4";
|
|
|
|
};
|
|
|
|
in ''
|
|
|
|
tar xf '${src-doc}'
|
|
|
|
cp ./dnsperf-src-*/doc/*.pdf "$doc/share/doc/dnsperf/"
|
2016-12-08 18:13:42 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-25 15:09:55 +00:00
|
|
|
outputsToInstall = outputs; # The man pages and docs are likely useful to most.
|
2016-12-08 18:13:42 +00:00
|
|
|
|
|
|
|
description = "Tools for DNS benchmaring";
|
2019-01-16 11:59:36 +00:00
|
|
|
homepage = "https://github.com/DNS-OARC/dnsperf";
|
2016-12-08 18:13:42 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
|
|
|
};
|
|
|
|
}
|