summary refs log tree commit diff
path: root/pkgs/tools/networking/webalizer/default.nix
blob: e9b9452c756313813e4665b0d8db91cb4a359cab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ 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 \
        --replace "--static" ""
    '';

  buildInputs = [zlib libpng gd geoip db];

  configureFlags = [
    "--enable-dns"
    "--enable-geoip"
    "--disable-static"
    "--enable-shared"
  ];

  meta = with stdenv.lib; {
    description = "Web server log file analysis program";
    homepage = http://www.webalizer.org;
    platforms = platforms.unix;
    license = licenses.gpl2;
  };
}