Merge pull request #147688 from fabaff/bump-dnsperf

dnsperf: 2.5.2 -> 2.8.0

authored by

Fabian Affolter and committed by
GitHub
2cb11c13 ed9f0d6c

+19 -26
+19 -26
pkgs/tools/networking/dnsperf/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchFromGitHub, autoreconfHook, pkg-config 2 - , openssl, ldns, libck 1 + { lib 2 + , stdenv 3 + , autoreconfHook 4 + , fetchFromGitHub 5 + , ldns 6 + , libck 7 + , nghttp2 8 + , openssl 9 + , pkg-config 3 10 }: 4 11 5 12 stdenv.mkDerivation rec { 6 13 pname = "dnsperf"; 7 - version = "2.5.2"; 14 + version = "2.8.0"; 8 15 9 - # The same as the initial commit of the new GitHub repo (only readme changed). 10 16 src = fetchFromGitHub { 11 17 owner = "DNS-OARC"; 12 18 repo = "dnsperf"; 13 19 rev = "v${version}"; 14 - sha256 = "0dzi28z7hnyxbibwdsalvd93czf4d5pgmvrbn6hlh52znsn40gbb"; 20 + sha256 = "sha256-jemce+ix18IPAusEHh5QWcSQn/QRUOc3HTSk9jGt+SA="; 15 21 }; 16 22 17 - outputs = [ "out" "man" "doc" ]; 18 - 19 - nativeBuildInputs = [ autoreconfHook pkg-config ]; 23 + nativeBuildInputs = [ 24 + autoreconfHook 25 + pkg-config 26 + ]; 20 27 21 28 buildInputs = [ 22 - openssl 23 29 ldns # optional for DDNS (but cheap anyway) 24 30 libck 31 + nghttp2 32 + openssl 25 33 ]; 26 34 27 35 doCheck = true; 28 36 29 - # For now, keep including the old PDFs as well. 30 - # https://github.com/DNS-OARC/dnsperf/issues/27 31 - postInstall = let 32 - src-doc = fetchurl { 33 - url = "ftp://ftp.nominum.com/pub/nominum/dnsperf/2.1.0.0/" 34 - + "dnsperf-src-2.1.0.0-1.tar.gz"; 35 - sha256 = "03kfc65s5a9csa5i7xjsv0psq144k8d9yw7xlny61bg1h2kg1db4"; 36 - }; 37 - in '' 38 - tar xf '${src-doc}' 39 - cp ./dnsperf-src-*/doc/*.pdf "$doc/share/doc/dnsperf/" 40 - ''; 41 - 42 37 meta = with lib; { 43 - outputsToInstall = outputs; # The man pages and docs are likely useful to most. 44 - 45 38 description = "Tools for DNS benchmaring"; 46 - homepage = "https://github.com/DNS-OARC/dnsperf"; 39 + homepage = "https://www.dns-oarc.net/tools/dnsperf"; 47 40 license = licenses.isc; 48 41 platforms = platforms.unix; 49 - maintainers = [ maintainers.vcunat ]; 42 + maintainers = with maintainers; [ vcunat ]; 50 43 }; 51 44 }