Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
autoreconfHook,
fetchFromGitHub,
gettext,
libmaxminddb,
ncurses,
openssl,
withGeolocation ? true,
}:
stdenv.mkDerivation rec {
pname = "goaccess";
version = "1.9.4";
src = fetchFromGitHub {
owner = "allinurl";
repo = "goaccess";
tag = "v${version}";
hash = "sha256-KevxuZuIrMybNlPZgVDLO0zQe4LfAKxfVBbHnyTUC/o=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [
ncurses
openssl
]
++ lib.optionals withGeolocation [ libmaxminddb ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ gettext ];
configureFlags = [
"--enable-utf8"
"--with-openssl"
]
++ lib.optionals withGeolocation [ "--enable-geoip=mmdb" ];
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.hostPlatform.isDarwin [
"-DHOST_NAME_MAX=_POSIX_HOST_NAME_MAX"
]
);
meta = {
description = "Real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems";
homepage = "https://goaccess.io";
changelog = "https://github.com/allinurl/goaccess/raw/v${version}/ChangeLog";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ederoyd46 ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
mainProgram = "goaccess";
};
}