Files
nixpkgs/pkgs/by-name/go/goaccess/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.2 KiB
Nix

{
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";
};
}