nixpkgs/pkgs/applications/networking/vnstat/default.nix
Tobias Geerinckx-Rice b8a7875d64 vnstat: 1.14 -> 1.15 & add longDescription
Changes:
- Fix: XML output had extra commas, broken since previous version
- Fix: unintended shared pointer modification in mosecs() sometimes resulted
  in wrong month name to be shown for the current month
- Fix: possible buffer overflow in /proc/net/dev parsing, requires corrupted
  content in /proc/net/dev or use of address sanitizer
- Use ANSI escape codes in -l and -tr modes for cursor location manipulation
  instead of printing backspaces, hide cursor while output is active
- Improve database import robustness
- Improve support for Asian UTF-8 date strings
- Replace hand written Makefiles with Autotools
- Add --alwaysadd parameter to daemon for allowing automatic addition of
  interfaces even if the database directory was populated during startup
2015-12-24 04:05:57 +01:00

34 lines
1.0 KiB
Nix

{ stdenv, fetchurl, ncurses }:
let version = "1.15"; in
stdenv.mkDerivation rec {
name = "vnstat-${version}";
src = fetchurl {
sha256 = "0fdw3nbrfm4acv48r0934ls6ld5lwkff3gyym2c72qlbm9dlp0f3";
url = "http://humdi.net/vnstat/${name}.tar.gz";
};
buildInputs = [ ncurses ];
postPatch = ''
substituteInPlace src/cfg.c --replace /usr/local $out
'';
meta = with stdenv.lib; {
inherit version;
description = "Console-based network statistics utility for Linux";
longDescription = ''
vnStat is a console-based network traffic monitor for Linux and BSD that
keeps a log of network traffic for the selected interface(s). It uses the
network interface statistics provided by the kernel as information source.
This means that vnStat won't actually be sniffing any traffic and also
ensures light use of system resources.
'';
homepage = http://humdi.net/vnstat/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nckx ];
platforms = platforms.linux;
};
}