nixpkgs/pkgs/tools/misc/goaccess/default.nix

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

52 lines
1.1 KiB
Nix
Raw Normal View History

2021-12-03 11:53:29 +01:00
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, gettext
, libmaxminddb
, ncurses
, openssl
, withGeolocation ? true
}:
2014-05-27 12:50:30 +02:00
stdenv.mkDerivation rec {
version = "1.7";
pname = "goaccess";
2021-12-03 11:53:29 +01:00
src = fetchFromGitHub {
owner = "allinurl";
repo = pname;
rev = "v${version}";
sha256 = "sha256-5lN+57HMxPfCop2sTSldhv1TBEIaowavXvniwqnesOQ=";
};
2014-05-27 12:50:30 +02:00
2021-12-03 11:53:29 +01:00
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
ncurses
openssl
] ++ lib.optionals withGeolocation [
libmaxminddb
] ++ lib.optionals stdenv.isDarwin [
gettext
];
2014-05-27 12:50:30 +02:00
configureFlags = [
"--enable-utf8"
2021-04-24 06:20:00 +02:00
"--with-openssl"
2021-12-03 11:53:29 +01:00
] ++ lib.optionals withGeolocation [
"--enable-geoip=mmdb"
];
2014-05-27 12:50:30 +02:00
2021-12-03 11:53:29 +01:00
meta = with lib; {
description = "Real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems";
2021-12-03 11:53:29 +01: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 12:50:30 +02:00
};
}