2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
|
2015-10-03 11:29:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.7.4";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nload";
|
2015-10-03 11:29:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://www.roland-riegel.de/nload/${pname}-${version}.tar.gz";
|
2015-10-03 11:29:51 +01:00
|
|
|
sha256 = "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61";
|
|
|
|
};
|
|
|
|
|
2018-10-11 13:37:49 +01: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 11:29:51 +01: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 02:11:51 +01:00
|
|
|
homepage = "http://www.roland-riegel.de/nload/index.html";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.devhell ];
|
2015-10-03 11:29:51 +01:00
|
|
|
};
|
|
|
|
}
|