nixpkgs/pkgs/tools/networking/webalizer/default.nix

32 lines
708 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, zlib, libpng, gd, geoip, db }:
stdenv.mkDerivation {
name = "webalizer-2.23-05";
src = fetchurl {
url = "ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-05-src.tar.bz2";
sha256 = "0nl88y57a7gawfragj3viiigfkh5sgivfb4n0k89wzcjw278pj5g";
};
preConfigure =
''
substituteInPlace ./configure \
2018-09-10 19:55:44 +00:00
--replace "--static" ""
'';
2018-09-10 19:55:44 +00:00
buildInputs = [zlib libpng gd geoip db];
2018-07-25 21:44:21 +00:00
configureFlags = [
"--enable-dns"
"--enable-geoip"
"--enable-shared"
];
meta = with lib; {
2018-09-10 19:55:44 +00:00
description = "Web server log file analysis program";
homepage = "http://www.webalizer.org";
2018-09-10 19:55:44 +00:00
platforms = platforms.unix;
license = licenses.gpl2;
};
}