2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpcap
|
|
|
|
, yascreen
|
|
|
|
}:
|
2021-10-06 13:57:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bpfmon";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "2.51";
|
2021-10-06 13:57:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bbonev";
|
|
|
|
repo = "bpfmon";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-EGRxWq94BWceYXunzcOpMQv4g7cMjVCEWMR0ULGN2Jg=";
|
2021-10-06 13:57:05 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
buildInputs = [
|
|
|
|
libpcap
|
|
|
|
yascreen
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
2021-10-06 13:57:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "BPF based visual packet rate monitor";
|
|
|
|
homepage = "https://github.com/bbonev/bpfmon";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/bbonev/bpfmon/releases/tag/v${version}";
|
2021-10-06 13:57:05 +00:00
|
|
|
maintainers = with maintainers; [ arezvov ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|