2021-01-15 14:21:58 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
|
2015-10-03 12:29:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.7.4";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nload";
|
2015-10-03 12:29:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://www.roland-riegel.de/nload/${pname}-${version}.tar.gz";
|
2015-10-03 12:29:51 +02:00
|
|
|
sha256 = "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61";
|
|
|
|
};
|
|
|
|
|
2018-10-11 14:37:49 +02:00
|
|
|
patches = [
|
|
|
|
# Fixes an ugly bug of graphs scrolling to the side, corrupting the view.
|
|
|
|
# There is an upstream fix, but not a new upstream release that includes it.
|
|
|
|
# Other distributions like Gentoo also patch this as a result; see:
|
|
|
|
# https://github.com/rolandriegel/nload/issues/3#issuecomment-427579143
|
|
|
|
# TODO Remove when https://github.com/rolandriegel/nload/issues/3 is merged and available
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/rolandriegel/nload/commit/8a93886e0fb33a81b8fe32e88ee106a581fedd34.patch";
|
|
|
|
name = "nload-0.7.4-Eliminate-flicker-on-some-terminals.patch";
|
|
|
|
sha256 = "10yppy5l50wzpcvagsqkbyf1rcan6aj30am4rw8hmkgnbidf4zbq";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-10-03 12:29:51 +02:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Monitors network traffic and bandwidth usage with ncurses graphs";
|
|
|
|
longDescription = ''
|
|
|
|
nload is a console application which monitors network traffic and
|
|
|
|
bandwidth usage in real time. It visualizes the in- and outgoing traffic
|
|
|
|
using two graphs and provides additional info like total amount of
|
|
|
|
transfered data and min/max network usage.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.roland-riegel.de/nload/index.html";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.devhell ];
|
2015-10-03 12:29:51 +02:00
|
|
|
};
|
|
|
|
}
|