4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
945 B
Nix
31 lines
945 B
Nix
{ 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;
|
|
};
|
|
}
|