nixpkgs/pkgs/tools/networking/httping/default.nix

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

72 lines
1.6 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";
version = "3.6";
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}";
hash = "sha256-lDgQC3VzfcLqMOQSaRZ/znMamAAGYq/9C9bHgI4G7B8=";
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
cmakeFlags = [
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
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 { };
};
meta = with lib; {
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";
license = 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";
2024-03-29 20:39:08 +00:00
maintainers = [ ];
platforms = platforms.linux;
2015-01-19 02:52:26 +00:00
};
})