2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, ncurses, libconfuse
|
2020-04-24 23:36:52 +00:00
|
|
|
, libnl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bmon";
|
|
|
|
version = "4.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tgraf";
|
|
|
|
repo = "bmon";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ilba872c09mnlvylslv4hqv6c9cz36l76q74rr99jvis1dg69gf";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ ncurses libconfuse libnl ];
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# Must be an absolute path
|
|
|
|
export PKG_CONFIG="$(command -v "$PKG_CONFIG")"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Network bandwidth monitor";
|
|
|
|
homepage = "https://github.com/tgraf/bmon";
|
|
|
|
# Licensed unter BSD and MIT
|
|
|
|
# - https://github.com/tgraf/bmon/blob/master/LICENSE.BSD
|
|
|
|
# - https://github.com/tgraf/bmon/blob/master/LICENSE.MIT
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ bjornfor pSub ];
|
|
|
|
};
|
|
|
|
}
|