1{ lib, stdenv, fetchurl, gettext, libintl, ncurses, openssl
2, fftw ? null }:
3
4stdenv.mkDerivation rec {
5 pname = "httping";
6 version = "2.5";
7
8 src = fetchurl {
9 url = "https://vanheusden.com/httping/${pname}-${version}.tgz";
10 sha256 = "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y";
11 };
12
13 buildInputs = [ fftw libintl ncurses openssl ];
14 nativeBuildInputs = [ gettext ];
15
16 makeFlags = [
17 "DESTDIR=$(out)"
18 "PREFIX="
19 ];
20
21 meta = with lib; {
22 homepage = "https://vanheusden.com/httping";
23 description = "ping with HTTP requests";
24 longDescription = ''
25 Give httping an url, and it'll show you how long it takes to connect,
26 send a request and retrieve the reply (only the headers). Be aware that
27 the transmission across the network also takes time! So it measures the
28 latency of the webserver + network. It supports IPv6.
29 '';
30 license = licenses.agpl3;
31 maintainers = [];
32 platforms = platforms.linux ++ platforms.darwin;
33 };
34}