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";
|
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "http://www.webalizer.org";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|