1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/tools/networking/jnettop/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

38 lines
1.1 KiB
Nix

{ fetchurl, fetchpatch, stdenv, autoconf, libpcap, ncurses, pkgconfig, glib }:
stdenv.mkDerivation rec {
name = "jnettop-0.13.0";
src = fetchurl {
url = "http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz";
sha256 = "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf 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";
})
];
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 = http://jnettop.kubs.info/;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix;
};
}