2021-12-03 10:53:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
|
|
|
, libmaxminddb
|
|
|
|
, ncurses
|
|
|
|
, openssl
|
|
|
|
, withGeolocation ? true
|
|
|
|
}:
|
2014-05-27 10:50:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-01 21:36:49 +00:00
|
|
|
version = "1.5.6";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "goaccess";
|
2016-06-10 02:33:27 +00:00
|
|
|
|
2021-12-03 10:53:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allinurl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-01 21:36:49 +00:00
|
|
|
sha256 = "sha256-1yvFyTH5m+KIN/x61cbUNgweK38WFdIUDvnkFYmST9s=";
|
2016-06-10 02:33:27 +00:00
|
|
|
};
|
2014-05-27 10:50:30 +00:00
|
|
|
|
2021-12-03 10:53:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals withGeolocation [
|
|
|
|
libmaxminddb
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
2014-05-27 10:50:30 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-utf8"
|
2021-04-24 04:20:00 +00:00
|
|
|
"--with-openssl"
|
2021-12-03 10:53:29 +00:00
|
|
|
] ++ lib.optionals withGeolocation [
|
|
|
|
"--enable-geoip=mmdb"
|
|
|
|
];
|
2014-05-27 10:50:30 +00:00
|
|
|
|
2021-12-03 10:53:29 +00:00
|
|
|
meta = with lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems";
|
2021-12-03 10:53:29 +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;
|
2014-05-27 10:50:30 +00:00
|
|
|
};
|
|
|
|
}
|