nixpkgs/pkgs/tools/networking/smokeping/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

23 lines
771 B
Nix

{ stdenv, fetchurl, fping, rrdtool, perlPackages }:
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
'';
meta = {
description = "Network latency collector";
homepage = http://oss.oetiker.ch/smokeping;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.all;
};
}