2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
autoreconfHook,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gettext,
|
|
|
|
libmaxminddb,
|
|
|
|
ncurses,
|
|
|
|
openssl,
|
|
|
|
withGeolocation ? true,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "goaccess";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.9.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allinurl";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "goaccess";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-FAooBAP2RbqAp7NTJNBdbRVldGCbx3SvOoTaiQ9Fl/I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
openssl
|
2024-05-15 15:35:15 +00:00
|
|
|
] ++ lib.optionals withGeolocation [ libmaxminddb ] ++ lib.optionals stdenv.isDarwin [ gettext ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-utf8"
|
2021-04-25 03:57:28 +00:00
|
|
|
"--with-openssl"
|
2024-05-15 15:35:15 +00:00
|
|
|
] ++ lib.optionals withGeolocation [ "--enable-geoip=mmdb" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://goaccess.io";
|
|
|
|
changelog = "https://github.com/allinurl/goaccess/raw/v${version}/ChangeLog";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ederoyd46 ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "goaccess";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|