1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/tools/networking/darkstat/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

32 lines
945 B
Nix

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