2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, zlib, libpng, gd, geoip, db }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "webalizer";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.23.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-10-11 05:15:48 +00:00
|
|
|
url = "mirror://debian/pool/main/w/webalizer/webalizer_${version}.orig.tar.gz";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-7a3bWqQcxKCBoVAOP6lmFdS0G8Eghrzt+ZOAGM557Y0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
|
|
# ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
installFlags = [ "MANDIR=\${out}/share/man/man1" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
substituteInPlace ./configure \
|
|
|
|
--replace "--static" ""
|
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [ zlib libpng gd geoip db ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-dns"
|
|
|
|
"--enable-geoip"
|
|
|
|
"--enable-shared"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Web server log file analysis program";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://webalizer.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|