2021-01-17 03:51:22 +00:00
|
|
|
{ fetchurl, fetchpatch, lib, stdenv, autoconf, libpcap, ncurses, pkg-config, glib }:
|
2008-12-03 14:22:55 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2008-12-03 14:22:55 +00:00
|
|
|
name = "jnettop-0.13.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz";
|
|
|
|
sha256 = "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9";
|
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf ];
|
2019-05-07 02:25:18 +01:00
|
|
|
buildInputs = [ libpcap ncurses glib ];
|
2008-12-03 14:22:55 +00:00
|
|
|
|
2017-07-10 19:02:07 +01:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-24 09:19:10 +00:00
|
|
|
preConfigure = "autoconf ";
|
2008-12-03 14:22:55 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Network traffic visualizer";
|
2008-12-03 14:22:55 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://jnettop.kubs.info/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2008-12-03 14:22:55 +00:00
|
|
|
};
|
|
|
|
}
|