From 5c2041ca5d81af0b2488fab291f7314437261029 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 18 Jan 2015 21:53:16 +0100 Subject: [PATCH] Add darkstat: light-weight network monitor web interface --- pkgs/tools/networking/darkstat/default.nix | 31 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/networking/darkstat/default.nix diff --git a/pkgs/tools/networking/darkstat/default.nix b/pkgs/tools/networking/darkstat/default.nix new file mode 100644 index 000000000000..af15f6a62e5d --- /dev/null +++ b/pkgs/tools/networking/darkstat/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, libpcap, zlib }: + +stdenv.mkDerivation rec { + version = "3.0.718"; + name = "darkstat-${version}"; + + src = fetchurl { + url = "${meta.homepage}/${name}.tar.bz2"; + sha256 = "1zxd4bxdfk1pjpcxhrcp54l991g0lljl4sr312nsd7p8yi9kwbv8"; + }; + + buildInputs = [ libpcap zlib ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Network statistics web interface"; + longDescription = '' + Captures network traffic, calculates statistics about usage, and serves + reports over HTTP. Features: + - Traffic graphs, reports per host, shows ports for each host. + - Embedded web-server with deflate compression. + - Asynchronous reverse DNS resolution using a child process. + - Small. Portable. Single-threaded. Efficient. + - Supports IPv6. + ''; + homepage = http://unix4lyfe.org/darkstat; + license = with licenses; gpl2; + maintainers = with maintainers; [ nckx ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 66dba26f70cf..ecfa5b7193ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -969,6 +969,8 @@ let dar = callPackage ../tools/archivers/dar { }; + darkstat = callPackage ../tools/networking/darkstat { }; + davfs2 = callPackage ../tools/filesystems/davfs2 { }; dbench = callPackage ../development/tools/misc/dbench { };