1{ lib
2, stdenv
3, fetchFromGitHub
4, libpcap
5, yascreen
6}:
7
8stdenv.mkDerivation rec {
9 pname = "bpfmon";
10 version = "2.52";
11
12 src = fetchFromGitHub {
13 owner = "bbonev";
14 repo = "bpfmon";
15 rev = "refs/tags/v${version}";
16 hash = "sha256-W7OnrC+FCxMd4YbYiybjIvO0LT7Hr1/0Y3BQwItaTBs=";
17 };
18
19 buildInputs = [
20 libpcap
21 yascreen
22 ];
23
24 makeFlags = [
25 "PREFIX=$(out)"
26 ];
27
28 meta = with lib; {
29 description = "BPF based visual packet rate monitor";
30 mainProgram = "bpfmon";
31 homepage = "https://github.com/bbonev/bpfmon";
32 changelog = "https://github.com/bbonev/bpfmon/releases/tag/v${version}";
33 maintainers = with maintainers; [ arezvov ];
34 license = licenses.gpl2Plus;
35 platforms = platforms.linux;
36 };
37}