nixpkgs/pkgs/by-name/ht/httping/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.5 KiB
Nix
Raw Normal View History

2024-03-29 20:39:08 +00:00
{
cmake,
2024-03-29 20:39:08 +00:00
fetchFromGitHub,
fftw,
2024-03-29 20:39:08 +00:00
gettext,
lib,
libintl,
ncurses,
nix-update-script,
2024-03-29 20:39:08 +00:00
openssl,
stdenv,
testers,
2022-11-04 20:29:56 +00:00
}:
2015-01-19 02:52:26 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "httping";
2024-07-28 02:47:53 +00:00
version = "4.1.0";
2015-01-19 02:52:26 +00:00
2022-11-04 20:29:56 +00:00
src = fetchFromGitHub {
owner = "folkertvanheusden";
repo = "HTTPing";
rev = "refs/tags/v${finalAttrs.version}";
2024-07-28 02:47:53 +00:00
hash = "sha256-JtsPtrj/ZineBokEytbkZdAfjVLTkiaNcGtKVJlKm38=";
2015-01-19 02:52:26 +00:00
};
2022-11-04 20:29:56 +00:00
nativeBuildInputs = [
cmake
2022-11-04 20:29:56 +00:00
gettext
];
2022-11-04 20:29:56 +00:00
buildInputs = [
fftw
libintl
ncurses
openssl
];
2015-01-19 02:52:26 +00:00
installPhase = ''
runHook preInstall
install -D httping $out/bin/httping
runHook postInstall
'';
passthru = {
tests.version = testers.testVersion {
command = "${lib.getExe finalAttrs.finalPackage} --version";
package = finalAttrs.finalPackage;
};
updateScript = nix-update-script { };
};
2024-03-29 22:51:19 +00:00
meta = {
changelog = "https://github.com/folkertvanheusden/HTTPing/releases/tag/v${finalAttrs.version}";
description = "Ping with HTTP requests";
2024-03-29 20:39:08 +00:00
homepage = "https://vanheusden.com/httping";
2024-03-29 22:51:19 +00:00
license = lib.licenses.agpl3Only;
longDescription = ''
Give httping an url, and it'll show you how long it takes to connect,
send a request and retrieve the reply (only the headers). Be aware that
the transmission across the network also takes time! So it measures the
latency of the webserver + network. It supports IPv6.
'';
2024-02-11 02:19:15 +00:00
mainProgram = "httping";
maintainers = [ lib.maintainers.anthonyroussel ];
2024-03-29 22:51:19 +00:00
platforms = lib.platforms.linux;
2015-01-19 02:52:26 +00:00
};
})