nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 zlib, 6 libpng, 7 gd, 8 geoip, 9 db, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "webalizer"; 14 version = "2.23.08"; 15 16 src = fetchurl { 17 url = "mirror://debian/pool/main/w/webalizer/webalizer_${finalAttrs.version}.orig.tar.gz"; 18 sha256 = "sha256-7a3bWqQcxKCBoVAOP6lmFdS0G8Eghrzt+ZOAGM557Y0="; 19 }; 20 21 # Workaround build failure on -fno-common toolchains: 22 # ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here 23 env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 installFlags = [ "MANDIR=\${out}/share/man/man1" ]; 26 27 preConfigure = '' 28 substituteInPlace ./configure \ 29 --replace "--static" "" 30 ''; 31 32 buildInputs = [ 33 zlib 34 libpng 35 gd 36 geoip 37 db 38 ]; 39 40 configureFlags = [ 41 "--enable-dns" 42 "--enable-geoip" 43 "--enable-shared" 44 ]; 45 46 meta = { 47 description = "Web server log file analysis program"; 48 homepage = "https://webalizer.net/"; 49 platforms = lib.platforms.unix; 50 license = lib.licenses.gpl2Plus; 51 }; 52})