1{ lib
2, stdenv
3, fetchFromGitHub
4, fftw ? null
5, gettext
6, libintl
7, ncurses
8, openssl
9}:
10
11stdenv.mkDerivation rec {
12 pname = "httping";
13 version = "2.9";
14
15 src = fetchFromGitHub {
16 owner = "folkertvanheusden";
17 repo = "HTTPing";
18 rev = "v${version}";
19 hash = "sha256-aExTXXtW03UKMuMjTMx1k/MUpcRMh1PdSPkDGH+Od70=";
20 };
21
22 nativeBuildInputs = [
23 gettext
24 ];
25
26 buildInputs = [
27 fftw
28 libintl
29 ncurses
30 openssl
31 ];
32
33 makeFlags = [
34 "DESTDIR=$(out)"
35 "PREFIX="
36 ];
37
38 meta = with lib; {
39 homepage = "https://vanheusden.com/httping";
40 description = "ping with HTTP requests";
41 longDescription = ''
42 Give httping an url, and it'll show you how long it takes to connect,
43 send a request and retrieve the reply (only the headers). Be aware that
44 the transmission across the network also takes time! So it measures the
45 latency of the webserver + network. It supports IPv6.
46 '';
47 license = licenses.agpl3Only;
48 maintainers = [];
49 platforms = platforms.linux ++ platforms.darwin;
50 };
51}