2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, gd, rrdtool }:
|
2014-12-06 08:05:29 +00:00
|
|
|
|
2024-05-22 16:23:44 +00:00
|
|
|
let
|
|
|
|
perlWithPkgs = perl.withPackages (pp: with pp;[
|
|
|
|
Socket6
|
|
|
|
IOSocketINET6
|
|
|
|
]);
|
|
|
|
in
|
2014-12-06 08:05:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mrtg";
|
2022-02-12 13:43:37 +00:00
|
|
|
version = "2.17.10";
|
2014-12-06 08:05:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-21 00:23:37 +00:00
|
|
|
url = "https://oss.oetiker.ch/mrtg/pub/mrtg-${version}.tar.gz";
|
2022-02-12 13:43:37 +00:00
|
|
|
sha256 = "sha256-x/EcteIXpQDYfuO10mxYqGUu28DTKRaIu3krAQ+uQ6w=";
|
2014-12-06 08:05:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-05-22 16:23:44 +00:00
|
|
|
# add support for ipv6 snmp:
|
|
|
|
# https://github.com/oetiker/mrtg/blob/433ebfa5fc043971b46a5cd975fb642c76e3e49d/src/bin/mrtg#L331-L341
|
|
|
|
perlWithPkgs
|
2021-08-30 08:35:09 +00:00
|
|
|
gd
|
|
|
|
rrdtool
|
2014-12-06 08:05:29 +00:00
|
|
|
];
|
|
|
|
|
2021-08-30 08:35:09 +00:00
|
|
|
meta = with lib; {
|
2014-12-06 08:05:29 +00:00
|
|
|
description = "Multi Router Traffic Grapher";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://oss.oetiker.ch/mrtg/";
|
2021-08-30 08:35:09 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ robberer ];
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 15:51:05 +00:00
|
|
|
};
|
2014-12-06 08:05:29 +00:00
|
|
|
}
|