2023-01-11 07:51:40 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, fping, rrdtool, perlPackages, autoreconfHook, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "smokeping";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "2.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://oss.oetiker.ch/smokeping/pub/smokeping-${version}.tar.gz";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-KeYRGLRV4juWmtpfjiq0MtPi74fUr+LIbeSgPXGItuo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/smokeping/raw/4ebf1921706a5a29c758fdce2f59cc35652c944a/f/smokeping-2.8.2-no-3rd-party.patch";
|
|
|
|
hash = "sha256-97rQ4m9HHl3lIpQyjZvu+gZSrNIB2pckxmopCQAQPp0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ rrdtool ] ++
|
|
|
|
(with perlPackages; [ perl FCGI CGI CGIFast ConfigGrammar DigestHMAC NetTelnet
|
|
|
|
NetOpenSSH NetSNMP LWP IOTty fping NetDNS perlldap ]);
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/htdocs/smokeping.fcgi.dist $out/htdocs/smokeping.fcgi
|
|
|
|
'';
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
passthru.tests.smokeping = nixosTests.smokeping;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Network latency collector";
|
2023-01-11 07:51:40 +00:00
|
|
|
homepage = "https://oss.oetiker.ch/smokeping";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = [ lib.maintainers.erictapen ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|