depot/third_party/nixpkgs/pkgs/tools/networking/smokeping/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

27 lines
878 B
Nix

{ lib, stdenv, fetchurl, fping, rrdtool, perlPackages, nixosTests }:
stdenv.mkDerivation rec {
pname = "smokeping";
version = "2.6.11";
src = fetchurl {
url = "https://oss.oetiker.ch/smokeping/pub/smokeping-${version}.tar.gz";
sha256 = "1p9hpa2zs33p7hzrds80kwrm5255s0869v3s3qmsyx2sx63c7czj";
};
propagatedBuildInputs = [ rrdtool ] ++
(with perlPackages; [ perl FCGI CGI CGIFast ConfigGrammar DigestHMAC NetTelnet
NetOpenSSH NetSNMP LWP IOTty fping NetDNS perlldap ]);
postInstall = ''
mv $out/htdocs/smokeping.fcgi.dist $out/htdocs/smokeping.fcgi
'';
passthru.tests.smokeping = nixosTests.smokeping;
meta = {
description = "Network latency collector";
homepage = "http://oss.oetiker.ch/smokeping";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.erictapen ];
};
}