15 stdenv.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
20 owner = "folkertvanheusden";
22 rev = "refs/tags/v${finalAttrs.version}";
23 hash = "sha256-JtsPtrj/ZineBokEytbkZdAfjVLTkiaNcGtKVJlKm38=";
40 install -D httping $out/bin/httping
45 tests.version = testers.testVersion {
46 command = "${lib.getExe finalAttrs.finalPackage} --version";
47 package = finalAttrs.finalPackage;
49 updateScript = nix-update-script { };
53 changelog = "https://github.com/folkertvanheusden/HTTPing/releases/tag/v${finalAttrs.version}";
54 description = "Ping with HTTP requests";
55 homepage = "https://vanheusden.com/httping";
56 license = lib.licenses.agpl3Only;
58 Give httping an url, and it'll show you how long it takes to connect,
59 send a request and retrieve the reply (only the headers). Be aware that
60 the transmission across the network also takes time! So it measures the
61 latency of the webserver + network. It supports IPv6.
63 mainProgram = "httping";
64 maintainers = [ lib.maintainers.anthonyroussel ];
65 platforms = lib.platforms.linux;