Adding vnstat. Unless using "vnstat -l", it wants some directories in /var, where
it collects information. svn path=/nixpkgs/trunk/; revision=17753
This commit is contained in:
parent
71fab59b62
commit
331d7185f2
26
pkgs/applications/networking/vnstat/default.nix
Normal file
26
pkgs/applications/networking/vnstat/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{stdenv, fetchurl, ncurses}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vnstat-1.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://humdi.net/vnstat/vnstat-1.9.tar.gz;
|
||||
sha256 = "1migym0wig1s3b7d22ipxkd1p78sqc89dwx82qbf5hsb5q2fk4q1";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,sbin} $out/share/man/{man1,man5}
|
||||
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/;
|
||||
license = "GPLv2+";
|
||||
description = "Console-based network statistics utility for Linux";
|
||||
};
|
||||
}
|
@ -7763,6 +7763,10 @@ let
|
||||
alsa = alsaLib;
|
||||
};
|
||||
|
||||
vnstat = import ../applications/networking/vnstat {
|
||||
inherit fetchurl stdenv ncurses;
|
||||
};
|
||||
|
||||
vorbisTools = import ../applications/audio/vorbis-tools {
|
||||
inherit fetchurl stdenv libogg libvorbis libao pkgconfig curl glibc
|
||||
speex flac;
|
||||
|
Loading…
Reference in New Issue
Block a user