mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
34 lines
813 B
Nix
34 lines
813 B
Nix
{ lib, stdenv, fetchurl, perl, gd, rrdtool }:
|
|
|
|
let
|
|
perlWithPkgs = perl.withPackages (pp: with pp;[
|
|
Socket6
|
|
IOSocketINET6
|
|
]);
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "mrtg";
|
|
version = "2.17.10";
|
|
|
|
src = fetchurl {
|
|
url = "https://oss.oetiker.ch/mrtg/pub/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-x/EcteIXpQDYfuO10mxYqGUu28DTKRaIu3krAQ+uQ6w=";
|
|
};
|
|
|
|
buildInputs = [
|
|
# add support for ipv6 snmp:
|
|
# https://github.com/oetiker/mrtg/blob/433ebfa5fc043971b46a5cd975fb642c76e3e49d/src/bin/mrtg#L331-L341
|
|
perlWithPkgs
|
|
gd
|
|
rrdtool
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Multi Router Traffic Grapher";
|
|
homepage = "https://oss.oetiker.ch/mrtg/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ robberer ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|