1 { lib, stdenv, fetchurl, fetchpatch, fping, rrdtool, perlPackages, autoreconfHook, nixosTests }:
3 stdenv.mkDerivation rec {
7 url = "https://oss.oetiker.ch/smokeping/pub/smokeping-${version}.tar.gz";
8 sha256 = "sha256-KeYRGLRV4juWmtpfjiq0MtPi74fUr+LIbeSgPXGItuo=";
13 url = "https://src.fedoraproject.org/rpms/smokeping/raw/4ebf1921706a5a29c758fdce2f59cc35652c944a/f/smokeping-2.8.2-no-3rd-party.patch";
14 hash = "sha256-97rQ4m9HHl3lIpQyjZvu+gZSrNIB2pckxmopCQAQPp0=";
18 propagatedBuildInputs = [ rrdtool ] ++
19 (with perlPackages; [ perl FCGI CGI CGIFast ConfigGrammar DigestHMAC NetTelnet
20 NetOpenSSH NetSNMP LWP IOTty fping NetDNS perlldap ]);
22 nativeBuildInputs = [ autoreconfHook ];
25 mv $out/htdocs/smokeping.fcgi.dist $out/htdocs/smokeping.fcgi
28 passthru.tests.smokeping = nixosTests.smokeping;
31 description = "Network latency collector";
32 homepage = "https://oss.oetiker.ch/smokeping";
33 license = lib.licenses.gpl2Plus;
34 platforms = lib.platforms.all;
35 maintainers = [ lib.maintainers.erictapen ];