1 { lib, stdenv, fetchurl, zlib, libpng, gd, geoip, db }:
3 stdenv.mkDerivation rec {
8 url = "mirror://debian/pool/main/w/webalizer/webalizer_${version}.orig.tar.gz";
9 sha256 = "sha256-7a3bWqQcxKCBoVAOP6lmFdS0G8Eghrzt+ZOAGM557Y0=";
12 # Workaround build failure on -fno-common toolchains:
13 # ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here
14 env.NIX_CFLAGS_COMPILE = "-fcommon";
16 installFlags = [ "MANDIR=\${out}/share/man/man1" ];
20 substituteInPlace ./configure \
21 --replace "--static" ""
24 buildInputs = [ zlib libpng gd geoip db ];
33 description = "Web server log file analysis program";
34 homepage = "https://webalizer.net/";
35 platforms = platforms.unix;
36 license = licenses.gpl2Plus;