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";
|
|
|
|
version = "2.23-05";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "ftp://ftp.mrunix.net/pub/webalizer/webalizer-${version}-src.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0nl88y57a7gawfragj3viiigfkh5sgivfb4n0k89wzcjw278pj5g";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
substituteInPlace ./configure \
|
|
|
|
--replace "--static" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [zlib libpng gd geoip db];
|
|
|
|
|
|
|
|
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;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|