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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ fetchurl, fetchpatch, lib, stdenv, autoconf, libpcap, ncurses, pkg-config, glib }:
stdenv.mkDerivation rec {
pname = "jnettop";
version = "0.13.0";
src = fetchurl {
url = "http://jnettop.kubs.info/dist/jnettop-${version}.tar.gz";
sha256 = "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9";
};
nativeBuildInputs = [ pkg-config autoconf ];
buildInputs = [ libpcap ncurses glib ];
patches = [
./no-dns-resolution.patch
(fetchpatch {
url = "https://sources.debian.net/data/main/j/jnettop/0.13.0-1/debian/patches/0001-Use-64-bit-integers-for-byte-totals-support-bigger-u.patch";
sha256 = "1b0alc12sj8pzcb66f8xslbqlbsvq28kz34v6jfhbb1q25hyr7jg";
})
# Fix pending upstream inclusion for ncurses-6.3:
# https://sourceforge.net/p/jnettop/patches/5/
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://sourceforge.net/p/jnettop/patches/5/attachment/jnettop-0.13.0-ncurses-6.3.patch";
sha256 = "1a0g3bal6f2fh1sq9q5kfwljrnskfvrhdzhjadcds34gzsr26v7x";
})
];
preConfigure = "autoconf ";
meta = {
description = "Network traffic visualizer";
longDescription = ''
Jnettop is a traffic visualiser, which captures traffic going
through the host it is running from and displays streams sorted
by bandwidth they use.
'';
homepage = "https://sourceforge.net/projects/jnettop/";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
}

View file

@ -0,0 +1,13 @@
When built in a chroot, `configure' fails to resolve `localhost'.
Furthermore that test appears to be useless.
--- jnettop-0.13.0/configure.ac 2006-04-29 15:34:09.000000000 +0200
+++ jnettop-0.13.0/configure.ac 2008-12-03 15:11:28.000000000 +0100
@@ -63,7 +63,6 @@ AC_NETTOP_CHECK_IN6_ADDR
LDFLAGS="$LDFLAGS $NSL_LIBS $SOCKET_LIBS"
-AC_NETTOP_CHECK_WORKING_RESOLVER
AC_NETTOP_CHECK_GETHOSTBYADDR_R
AM_PATH_GLIB_2_0(2.0.1,, AC_MSG_ERROR("glib >= 2.0.1 library required"), gthread)