nixpkgs/pkgs/tools/graphics/logstalgia/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
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
2021-01-11 10:38:22 +01:00

45 lines
1.7 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenv, fetchurl, SDL2, ftgl, pkgconfig, libpng, libjpeg, pcre, SDL2_image, glew
, libGLU, libGL, boost, glm, freetype }:
stdenv.mkDerivation rec {
pname = "logstalgia";
version = "1.1.2";
src = fetchurl {
url = "https://github.com/acaudwell/Logstalgia/releases/download/${pname}-${version}/${pname}-${version}.tar.gz";
sha256 = "1agwjlwzp1c86hqb1p7rmzqzhd3wpnyh8whsfq4sbx01wj0l0gzd";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glew SDL2 ftgl libpng libjpeg pcre SDL2_image libGLU libGL boost
glm freetype ];
meta = with lib; {
homepage = "https://logstalgia.io/";
description = "Website traffic visualization tool";
license = licenses.gpl3Plus;
longDescription = ''
Logstalgia is a website traffic visualization that replays or
streams web-server access logs as a pong-like battle between the
web server and an never ending torrent of requests.
Requests appear as colored balls (the same color as the host)
which travel across the screen to arrive at the requested
location. Successful requests are hit by the paddle while
unsuccessful ones (eg 404 - File Not Found) are missed and pass
through.
The paths of requests are summarized within the available space by
identifying common path prefixes. Related paths are grouped
together under headings. For instance, by default paths ending in
png, gif or jpg are grouped under the heading Images. Paths that
dont match any of the specified groups are lumped together under
a Miscellaneous section.
'';
platforms = platforms.gnu ++ platforms.linux;
maintainers = with maintainers; [ pSub ];
};
}