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-08-22 20:05:09 +00:00
|
|
|
version = "2.52";
|
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}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-W7OnrC+FCxMd4YbYiybjIvO0LT7Hr1/0Y3BQwItaTBs=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bpfmon";
|
2021-10-06 13:57:05 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|