about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/darkstat/default.nix
blob: 04cab3655787648f4be0348a5023d151e52dbb46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, stdenv, fetchurl, libpcap, zlib }:

stdenv.mkDerivation rec {
  version = "3.0.719";
  pname = "darkstat";

  src = fetchurl {
    url = "${meta.homepage}/${pname}-${version}.tar.bz2";
    sha256 = "1mzddlim6dhd7jhr4smh0n2fa511nvyjhlx76b03vx7phnar1bxf";
  };

  buildInputs = [ libpcap zlib ];

  enableParallelBuilding = true;

  meta = with 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 = licenses.gpl2;
    platforms = with platforms; unix;
  };
}