3
0
Fork 0
forked from mirrors/nixpkgs

httping: 2.5 -> 2.9

This commit is contained in:
Fabian Affolter 2022-11-04 21:29:56 +01:00
parent 04abe7d80c
commit ed9bd02e77

View file

@ -1,26 +1,34 @@
{ lib, stdenv, fetchurl, fetchpatch, gettext, libintl, ncurses, openssl
, fftw ? null }:
{ lib
, stdenv
, fetchFromGitHub
, fftw ? null
, gettext
, libintl
, ncurses
, openssl
}:
stdenv.mkDerivation rec {
pname = "httping";
version = "2.5";
version = "2.9";
src = fetchurl {
url = "https://vanheusden.com/httping/${pname}-${version}.tgz";
sha256 = "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y";
src = fetchFromGitHub {
owner = "folkertvanheusden";
repo = "HTTPing";
rev = "v${version}";
hash = "sha256-aExTXXtW03UKMuMjTMx1k/MUpcRMh1PdSPkDGH+Od70=";
};
patches = [
# Upstream fix for ncurses-6.3.
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/folkertvanheusden/HTTPing/commit/4ea9d5b78540c972e3fe1bf44db9f7b3f87c0ad0.patch";
sha256 = "0w3kdkq6c6hz1d9jjnw0ldvd6dy39yamj8haf0hvcyb1sb67qjmp";
})
nativeBuildInputs = [
gettext
];
buildInputs = [ fftw libintl ncurses openssl ];
nativeBuildInputs = [ gettext ];
buildInputs = [
fftw
libintl
ncurses
openssl
];
makeFlags = [
"DESTDIR=$(out)"
@ -36,7 +44,7 @@ stdenv.mkDerivation rec {
the transmission across the network also takes time! So it measures the
latency of the webserver + network. It supports IPv6.
'';
license = licenses.agpl3;
license = licenses.agpl3Only;
maintainers = [];
platforms = platforms.linux ++ platforms.darwin;
};