mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 21:04:30 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
1008 B
Nix
39 lines
1008 B
Nix
{ lib, stdenv, fetchurl, zlib, libpng, gd, geoip, db }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "webalizer";
|
|
version = "2.23.08";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://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 ];
|
|
|
|
configureFlags = [
|
|
"--enable-dns"
|
|
"--enable-geoip"
|
|
"--enable-shared"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Web server log file analysis program";
|
|
homepage = "https://webalizer.net/";
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|