uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/tools/networking/webalizer/default.nix
Normal file
36
pkgs/tools/networking/webalizer/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchurl, zlib, libpng, gd, geoip, db }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "webalizer";
|
||||
version = "2.23-05";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.mrunix.net/pub/webalizer/webalizer-${version}-src.tar.bz2";
|
||||
sha256 = "0nl88y57a7gawfragj3viiigfkh5sgivfb4n0k89wzcjw278pj5g";
|
||||
};
|
||||
|
||||
# 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
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
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.gpl2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue