2009-10-12 13:08:52 +02:00
|
|
|
{stdenv, fetchurl, ncurses}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-01-19 17:10:57 +01:00
|
|
|
name = "vnstat-1.13";
|
2012-09-01 21:53:58 +02:00
|
|
|
|
2009-10-12 13:08:52 +02:00
|
|
|
src = fetchurl {
|
2012-09-01 21:53:58 +02:00
|
|
|
url = "http://humdi.net/vnstat/${name}.tar.gz";
|
2015-01-19 17:10:57 +01:00
|
|
|
sha256 = "1kcrxpvp3al1j6kh7k69vwva6kd1ba32wglx95gv55dixfcjakkg";
|
2009-10-12 13:08:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/{bin,sbin} $out/share/man/{man1,man5}
|
2009-10-12 13:08:52 +02:00
|
|
|
cp src/vnstat $out/bin
|
|
|
|
cp src/vnstatd $out/sbin
|
|
|
|
cp man/vnstat.1 man/vnstatd.1 $out/share/man/man1
|
|
|
|
cp man/vnstat.conf.5 $out/share/man/man5
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ncurses];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://humdi.net/vnstat/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-10-12 13:08:52 +02:00
|
|
|
description = "Console-based network statistics utility for Linux";
|
2015-01-19 17:10:57 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ nckx ];
|
2009-10-12 13:08:52 +02:00
|
|
|
};
|
|
|
|
}
|