diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-01-18 21:53:16 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-01-18 21:53:17 +0100 |
commit | 5c2041ca5d81af0b2488fab291f7314437261029 (patch) | |
tree | 790620b7e7890c2b20861a1334300587b37bc11d /pkgs/tools/networking/darkstat | |
parent | 9438fa4d3f61617905210de51090400d6e4eed6e (diff) |
Add darkstat: light-weight network monitor web interface
Diffstat (limited to 'pkgs/tools/networking/darkstat')
-rw-r--r-- | pkgs/tools/networking/darkstat/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
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 ]; + }; +} |