571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
884 B
Nix
47 lines
884 B
Nix
{ lib
|
|
, stdenv
|
|
, autoreconfHook
|
|
, fetchFromGitHub
|
|
, ldns
|
|
, libck
|
|
, nghttp2
|
|
, openssl
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dnsperf";
|
|
version = "2.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DNS-OARC";
|
|
repo = "dnsperf";
|
|
rev = "v${version}";
|
|
hash = "sha256-eDDVNFMjj+0wEBe1qO6r4Bai554Sp+EmP86reJ/VXGk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
ldns # optional for DDNS (but cheap anyway)
|
|
libck
|
|
nghttp2
|
|
openssl
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Tools for DNS benchmaring";
|
|
homepage = "https://www.dns-oarc.net/tools/dnsperf";
|
|
changelog = "https://github.com/DNS-OARC/dnsperf/releases/tag/v${version}";
|
|
license = licenses.isc;
|
|
platforms = platforms.unix;
|
|
mainProgram = "dnsperf";
|
|
maintainers = with maintainers; [ vcunat mfrw ];
|
|
};
|
|
}
|