lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 24.11-pre 45 lines 1.2 kB view raw
1{ lib, stdenv 2, fetchFromGitHub 3, pkg-config 4, gd, ncurses 5, sqlite 6, check 7}: 8 9stdenv.mkDerivation rec { 10 pname = "vnstat"; 11 version = "2.12"; 12 13 src = fetchFromGitHub { 14 owner = "vergoh"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "sha256-JwVYhmCscEdbwNGa+aKdOt8cIclpvjl4tmWFU3zhcwc="; 18 }; 19 20 postPatch = '' 21 substituteInPlace src/cfg.c --replace /usr/local $out 22 ''; 23 24 nativeBuildInputs = [ pkg-config ]; 25 buildInputs = [ gd ncurses sqlite ]; 26 27 nativeCheckInputs = [ check ]; 28 29 doCheck = true; 30 31 meta = with lib; { 32 description = "Console-based network statistics utility for Linux"; 33 longDescription = '' 34 vnStat is a console-based network traffic monitor for Linux and BSD that 35 keeps a log of network traffic for the selected interface(s). It uses the 36 network interface statistics provided by the kernel as information source. 37 This means that vnStat won't actually be sniffing any traffic and also 38 ensures light use of system resources. 39 ''; 40 homepage = "https://humdi.net/vnstat/"; 41 license = licenses.gpl2Plus; 42 platforms = platforms.linux; 43 maintainers = with maintainers; [ evils ]; 44 }; 45}