httping: 2.5 -> 2.9

+24 -16
+24 -16
pkgs/tools/networking/httping/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchpatch, gettext, libintl, ncurses, openssl 2 - , fftw ? null }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fftw ? null 5 + , gettext 6 + , libintl 7 + , ncurses 8 + , openssl 9 + }: 3 10 4 11 stdenv.mkDerivation rec { 5 12 pname = "httping"; 6 - version = "2.5"; 13 + version = "2.9"; 7 14 8 - src = fetchurl { 9 - url = "https://vanheusden.com/httping/${pname}-${version}.tgz"; 10 - sha256 = "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"; 15 + src = fetchFromGitHub { 16 + owner = "folkertvanheusden"; 17 + repo = "HTTPing"; 18 + rev = "v${version}"; 19 + hash = "sha256-aExTXXtW03UKMuMjTMx1k/MUpcRMh1PdSPkDGH+Od70="; 11 20 }; 12 21 13 - patches = [ 14 - # Upstream fix for ncurses-6.3. 15 - (fetchpatch { 16 - name = "ncurses-6.3.patch"; 17 - url = "https://github.com/folkertvanheusden/HTTPing/commit/4ea9d5b78540c972e3fe1bf44db9f7b3f87c0ad0.patch"; 18 - sha256 = "0w3kdkq6c6hz1d9jjnw0ldvd6dy39yamj8haf0hvcyb1sb67qjmp"; 19 - }) 22 + nativeBuildInputs = [ 23 + gettext 20 24 ]; 21 25 22 - buildInputs = [ fftw libintl ncurses openssl ]; 23 - nativeBuildInputs = [ gettext ]; 26 + buildInputs = [ 27 + fftw 28 + libintl 29 + ncurses 30 + openssl 31 + ]; 24 32 25 33 makeFlags = [ 26 34 "DESTDIR=$(out)" ··· 36 44 the transmission across the network also takes time! So it measures the 37 45 latency of the webserver + network. It supports IPv6. 38 46 ''; 39 - license = licenses.agpl3; 47 + license = licenses.agpl3Only; 40 48 maintainers = []; 41 49 platforms = platforms.linux ++ platforms.darwin; 42 50 };