2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, zlib, libpng, gd, geoip, db }:
|
2010-02-25 14:30:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-12-26 18:27:30 +01:00
|
|
|
name = "webalizer-2.23-05";
|
2010-02-25 14:30:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-05-src.tar.bz2";
|
2011-12-26 18:27:30 +01:00
|
|
|
sha256 = "0nl88y57a7gawfragj3viiigfkh5sgivfb4n0k89wzcjw278pj5g";
|
2010-02-25 14:30:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
substituteInPlace ./configure \
|
2018-09-10 21:55:44 +02:00
|
|
|
--replace "--static" ""
|
2010-02-25 14:30:34 +01:00
|
|
|
'';
|
|
|
|
|
2018-09-10 21:55:44 +02:00
|
|
|
buildInputs = [zlib libpng gd geoip db];
|
2010-02-25 14:30:34 +01:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-dns"
|
|
|
|
"--enable-geoip"
|
|
|
|
"--enable-shared"
|
|
|
|
];
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-09-10 21:55:44 +02:00
|
|
|
description = "Web server log file analysis program";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.webalizer.org";
|
2018-09-10 21:55:44 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2010-02-25 14:30:34 +01:00
|
|
|
}
|