bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
71 lines
1.6 KiB
Nix
71 lines
1.6 KiB
Nix
{
|
|
cmake,
|
|
fetchFromGitHub,
|
|
fftw,
|
|
gettext,
|
|
lib,
|
|
libintl,
|
|
ncurses,
|
|
nix-update-script,
|
|
openssl,
|
|
stdenv,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "httping";
|
|
version = "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "folkertvanheusden";
|
|
repo = "HTTPing";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-lDgQC3VzfcLqMOQSaRZ/znMamAAGYq/9C9bHgI4G7B8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
gettext
|
|
];
|
|
|
|
buildInputs = [
|
|
fftw
|
|
libintl
|
|
ncurses
|
|
openssl
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
|
|
];
|
|
|
|
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 = {
|
|
changelog = "https://github.com/folkertvanheusden/HTTPing/releases/tag/v${finalAttrs.version}";
|
|
description = "Ping with HTTP requests";
|
|
homepage = "https://vanheusden.com/httping";
|
|
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.
|
|
'';
|
|
mainProgram = "httping";
|
|
maintainers = [ lib.maintainers.anthonyroussel ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|