webalizer: 2.23-05 -> 2.23.08

Update version and replace mirror, because previously used mirror is unavailable
This commit is contained in:
Isa 2023-05-22 18:51:03 +02:00
parent ae7f9c70b5
commit 3456657a94

View File

@ -2,24 +2,26 @@
stdenv.mkDerivation rec {
pname = "webalizer";
version = "2.23-05";
version = "2.23.08";
src = fetchurl {
url = "ftp://ftp.mrunix.net/pub/webalizer/webalizer-${version}-src.tar.bz2";
sha256 = "0nl88y57a7gawfragj3viiigfkh5sgivfb4n0k89wzcjw278pj5g";
url = "https://ftp.debian.org/debian/pool/main/w/webalizer/webalizer_${version}.orig.tar.gz";
sha256 = "sha256-7a3bWqQcxKCBoVAOP6lmFdS0G8Eghrzt+ZOAGM557Y0=";
};
# Workaround build failure on -fno-common toolchains:
# ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here
env.NIX_CFLAGS_COMPILE = "-fcommon";
installFlags = [ "MANDIR=\${out}/share/man/man1" ];
preConfigure =
''
substituteInPlace ./configure \
--replace "--static" ""
'';
buildInputs = [zlib libpng gd geoip db];
buildInputs = [ zlib libpng gd geoip db ];
configureFlags = [
"--enable-dns"